github/relative-time-element
View on GitHub ↗ ★ 4,053 JavaScript
Web component extensions to the standard <time> element.
6 mentions on Hacker News by 6 people: 1 story, 5 comments · first 2014-08-09 · latest 2025-12-18
20082026
-
Take a look at GitHub’s <relative-time> element - works great as a progressive enhancement: https://github.com/github/relative-time-element
comment by Ciunkos · 2025-12-18 · in The <time> element should do something -
…{document.querySelectorAll("relative-time").forEach((el)=> el.format="datetime")})() based on docs at https://github.com/github/relative-time-element you can also do other formats like document.querySelectorAll("relative-time").forEach((el)…
comment by fngjdflmdflg · 2024-07-22 · in Eza: A modern, maintained replacement for ls -
Web Components, e.g. https://github.com/github/relative-time-element
comment by uallo · 2023-11-01 · in Htmx, Rust and Shuttle: A New Rapid Prototyping Stack -
…To maintainers, this example link https://github.github.io/time-elements/examples/ is missing from https://github.com/github/time-elements page
comment by tima101 · 2021-03-12 · in GitHub's Web Component Collection -
https://github.com/github/time-elements
comment by lloydatkinson · 2020-02-20 · in You don't need libraries for internationalization of dates -
▲ 1
GitHub's Web component extensions to the standard time elementstory by tilt · 2014-08-09 · 0 comments