Components
← All components

Relative Time

stimeo--relative-time

Shows a time as "3 minutes ago" and keeps rewriting itself as time passes.

  • Core

Shows a time as wording like "3 minutes ago" and rewrites itself as time passes. The interval widens as the stamp ages, so a post from hours ago is not rewritten every second. Old enough, and it falls back to the absolute time as written. The formatting uses what the browser already provides and adds no dependency. The machine-readable value is left untouched, so what screen readers and crawlers see stays correct. The rewriting never interrupts a screen reader, because hearing "4 minutes ago" repeatedly while reading would be an intrusion.

running
  • Posted
  • Updated
  • Due
  • Archived

The text rewrites itself as time passes, less often as it ages. Items within a few minutes update about once a minute, so leaving this page open shows "4 minutes ago" ticking to "5 minutes ago". The updates never interrupt a screen reader. Hover to see the absolute time.

Keyboard

This component has no keyboard interactions of its own.