Skip to main content

TimestampWithTooltip

Shows relative time (or abbreviated footer form) on the trigger; rich breakdown in InteractiveTooltip.

Props​

PropDefault
dateDate | ISO string | null
abbreviatedfalse → 2d style vs 2 days ago
showSecondsreserved in API
updateInterval60000 (relative tick uses 1s interval internally)

Tooltip content​

  • Multi-unit relative string (“Exact Time”).
  • UTC yyyy-MM-dd HH:mm:ss via date-fns-tz.
  • Local zone from Intl.DateTimeFormat().resolvedOptions().timeZone.

Null → “Unknown time”; invalid → “Invalid time” with console error.


Sources: src/app/components/ui/TimestampWithTooltip.tsx, src/app/components/tooltip/InteractiveTooltip.tsx