Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2014 (1)
20082026
  1. 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
  2. …{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
  3. Web Components, e.g. https://github.com/github/relative-time-element
  4. …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
  5. https://github.com/github/time-elements
  6. ▲ 1
    GitHub's Web component extensions to the standard time element
    story by tilt · 2014-08-09 · 0 comments