Relative Time Element
Formats a timestamp as a localized string or as relative text that auto-updates in the user's browser.
About
The relative-time-element is a web component that formats timestamps as either localized strings or relative time text that updates in real-time within the user's browser. It allows for server-side caching of HTML fragments containing dates, while the browser handles localization based on user preferences. This component utilizes the Intl.DateTimeFormat and Intl.RelativeTimeFormat APIs, ensuring compatibility with modern JavaScript engines.
Open Source Health
- Stars
- 4,033
- Forks
- 192
- License
- MIT
- Last commit
- 28 days ago
Resources & Links
Related Categories
Vendor
Github
Publisher of Hubot, GitHub Security Blog and Aqua Security
Quick Links
Open Source
More by Github
Related Products
LibreTranslate
Free and Open Source Machine Translation API
Top category match
Jasmine
Jasmine is a framework for testing JavaScript code in browsers and Node.js.
More from this vendor
Deep Research
An AI-powered research assistant that performs iterative, deep research on any topic by combining search engines, web scraping, and large language models. The goal of this repo is to provide the simplest implementation of a deep research agent - e.g. an agent that can refine…
Shared categories
select.rs
A Rust library to extract useful data from HTML documents, suitable for web scraping.
Shared categories
Scrapely
A pure-python HTML screen-scraping library
Shared categories