Date and Time Interchange Patterns

Representing instants, civil dates, time zones, recurring schedules, and intervals without hidden assumptions.

  • JSON5,409 B
  • YAML3,858 B · −29%
  • TOON3,160 B · −42%

Representing instants, civil dates, time zones, recurring schedules, and intervals without hidden assumptions. Each row includes a practical application and a failure to check before using it.

Use it when

  • Design time fields for an API or dataset.
  • Make a schedule keep its intended local time.

Watch out for

  • Examples do not describe leap-second support in every runtime.
  • Time-zone databases and runtime parsing behavior must be kept current.

The data

CaseExampleRepresentationTrap
UTC instant2026-10-12T09:00:00ZRFC 3339 timestamp with an explicit UTC offset.A local-looking timestamp without an offset is ambiguous.
Offset instant2026-10-12T12:00:00+03:00Timestamp identifying the same instant with a numeric offset.An offset is not a geographic time-zone rule set.
Civil date2026-10-12Calendar date without a time.Converting a birthday to UTC can change the displayed date.
Named time zoneEurope/IstanbulIANA time-zone identifier for local scheduling.Government rules can change; update the time-zone database.
Recurring appointment09:00 every Monday in Europe/IstanbulLocal rule plus named zone and recurrence.A fixed UTC time may shift the intended local hour.
Unix seconds1791795600Integer count of seconds from the Unix epoch.Do not confuse seconds with milliseconds.
Unix milliseconds1791795600000Integer count at millisecond scale.Declare the unit in the field name or schema.
Fractional precision2026-10-12T09:00:00.123ZExplicit fraction of a second.Consumers may round or truncate to lower precision.
Half-open intervalstart <= event_time AND event_time < endInclude the start and exclude the end.Adjacent windows double-count a shared end if both are closed.
Monotonic elapsed timeperformance.now() difference in a browserMeasure durations with a monotonic clock.Wall-clock adjustments can distort elapsed-time measurements.

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
datacasestringUTC instant
dataexamplestring2026-10-12T09:00:00Z
datarepresentationstringRFC 3339 timestamp with an explicit UTC offset.
datatrapstringA local-looking timestamp without an offset is …

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.com/api/dataset/date-time-interchange?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/date-time-interchange.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Sources and editorial notes

Original editorial reference notes by YJTOON, informed by the linked primary documentation. External specifications retain their own licenses.

Editorial review: . Source documents keep their own licenses.

Topics

  • programming-languages
  • date time interchange
  • reference
  • engineering

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets