Timestamp
moleculesSubdued instant in one of six modes (date, time, datetime, relative, iso, short-iso) that opens UTC, local, relative, zone and epoch on click.
Deploy audit log
mode="relative" keeps "3m ago" fresh (re-rendered every tickMs); click any time for UTC, local, zone and epoch. The detail column uses mode="short-iso" mono.
Jun Tanaka rolled back api-gateway to 3.14.1
CI deployed api-gateway 3.14.2
Amara Okafor approved the production release
Mateo Ruiz merged fix/retry-budget
Modes
mode picks the inline text; date, time and datetime follow the viewer zone unless utc is set; iso is always UTC; mono, size and tone match surrounding copy.
datetime
date
time
iso
short-iso
relative
date, utc
mono, size lg, tone accent
tone inherit inside copy Invoice issued .
States and relative precision
null, undefined or unparseable input render an inert dash; precision shows two units, short drops "ago"; selectable adds mode switches to the popover; details={false} is a bare <time>.
null
not a date
epoch ms, 6 min ago
precision
short
in the future
selectable
details off
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value required | TimeInput | null | undefined | — | The instant: a Date, epoch milliseconds, or an ISO/parseable string. null/undefined (or unparseable input) renders an inert "—". |
mode | TimestampMode | 'datetime' | Inline display mode. Default 'datetime'. |
utc | boolean | false | Render the date/time/datetime/short-iso modes in UTC rather than the viewer's zone. Default false. Ignored by 'iso' (always UTC) and 'relative' (zoneless). Handy for calendar-date fields, where a local midnight-UTC value would otherwise show the wrong day. |
precision | boolean | false | Relative mode only: render two units ("1d 15h", "1h 55m") instead of a single rounded unit. Default false. |
details | boolean | true | Click to open the details popover (UTC / local / relative / zone / epoch). Default true. When false, renders as a bare inline <time>. |
selectable | boolean | false | Add mode-switch buttons inside the popover so the viewer can change the inline display mode. Default false. Implies `details`. |
mono | boolean | false | Render in the monospace font (tabular figures stay on regardless). |
tone | Tone | 'muted' | Text colour, mirroring <Text> tones. Default 'muted' — timestamps read as subdued metadata; pass 'inherit' to blend with surrounding copy. |
size | Size | — | Font size, mirroring <Text> sizes (maps to --fs-* tokens). Omit to inherit the surrounding size. |
short | boolean | false | Relative mode without the "ago" suffix ("6m", "2h", "3d"). |
tickMs | number | 30_000 | How often relative mode re-renders so "3m ago" stays fresh. |
class | string | '' | |
style | string | '' |