Welcome to Vanilla Breeze
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
The time element represents a specific period in time, providing a machine-readable datetime value while displaying a human-readable format to users.
The <time> element represents a specific moment or range of time. It encodes dates and times in a machine-readable format via the datetime attribute while displaying human-friendly text. This enables browsers, search engines, and assistive technologies to parse and utilize temporal data.
<data>Standard time element with tabular numeric font for consistent digit widths.
<p>Published on <time datetime="2026-01-15">January 15, 2026</time></p><p>Updated on <time datetime="2026-02-20">February 20, 2026</time></p>
Muted, smaller text for relative time displays. Typically updated by JavaScript to show how long ago something occurred.
<p>Posted <time class="relative" datetime="2026-02-23">2 days ago</time></p><p>Last edited <time class="relative" datetime="2026-02-25">just now</time></p>
Monospace font for technical datetime displays, such as log entries or API timestamps.
<p>Timestamp: <time class="datetime" datetime="2026-02-25T14:30:00">2026-02-25 14:30:00</time></p><p>With timezone: <time class="datetime" datetime="2026-02-25T14:30:00-05:00">2026-02-25 14:30:00-05:00</time></p>
Pill-style badge for dates that need to stand out, such as event dates, release versions, or deadlines. Add the data-badge attribute to any <time> element.
<p>Release date: <time data-badge datetime="2026-03-01">March 1, 2026</time></p><p>Event: <time data-badge datetime="2026-06-15T09:00">June 15, 2026 at 9:00 AM</time></p><p>Deadline: <time data-badge datetime="2026-04-30">April 30, 2026</time></p>
Dates, times, combined formats, and ISO 8601 durations.
VB provides locale-aware date formatting via the data-format-date attribute. Like <data>'s data-format-number, the visible text serves as a no-JS fallback and is replaced with formatted output on init.
| Attribute Value | Output (en-US) |
|---|---|
data-format-date (empty) | Feb 9, 2026 (medium) |
data-format-date="short" | 2/9/26 |
data-format-date="long" | February 9, 2026 |
data-format-date="full" | Monday, February 9, 2026 |
data-format-date="relative" | 2 days ago |
Add data-format-time for time display (short, medium, long, full). Override locale per-element with data-locale. See the i18n guide for locale resolution.
Time elements work naturally in article metadata, event listings, and other contextual patterns.
The datetime attribute uses ISO 8601 format:
| Format | Example | Represents |
|---|---|---|
YYYY |
2026 |
Year |
YYYY-MM |
2026-01 |
Month |
YYYY-MM-DD |
2026-01-15 |
Date |
HH:MM |
14:30 |
Time |
YYYY-MM-DDTHH:MM |
2026-01-15T14:30 |
Date and time |
YYYY-MM-DDTHH:MM:SS |
2026-01-15T14:30:00 |
With seconds |
...Z |
2026-01-15T14:30:00Z |
UTC timezone |
...+HH:MM |
2026-01-15T14:30:00+05:30 |
With timezone offset |
PTXHXMXS |
PT2H30M |
Duration |
| Variant | Selector | Use Case |
|---|---|---|
| Default | time |
Standard dates with tabular numerals |
| Relative | time.relative |
Muted "2 days ago" displays |
| Datetime | time.datetime |
Technical timestamps in monospace |
| Badge | time[data-badge] |
Pill-style emphasis for key dates |
/* Base — tabular numerals for consistent digit widths */time { font-variant-numeric: tabular-nums;} /* Relative — muted, smaller text */time.relative { color: var(--color-text-muted); font-size: var(--font-size-sm);} /* Datetime — monospace for technical display */time.datetime { font-family: var(--font-mono); font-size: 0.9em;} /* Badge — pill-style for emphasis */time[data-badge] { display: inline-block; background: var(--color-surface-raised); padding: var(--size-2xs) var(--size-xs); border-radius: var(--radius-s); border: var(--border-width-thin) solid var(--color-border); font-family: var(--font-mono); font-size: 0.9em;}
datetime attribute enables assistive technologies to parse dates accurately<data> — Machine-readable values that aren't dates (has data-format-number counterpart)<del> / <ins> — Use datetime attribute for edit timestamps<small> — Often paired with time for date caveats