Skip to content
All references

Time reference

Date & Time Formats

Distinguish dates, local times, UTC instants and offsets before moving values between applications.

Separate a calendar date, a local time and an exact instant

A birthday, a meeting and a log timestamp are different kinds of information. A calendar date does not necessarily identify a time zone. A local time needs its date and zone to identify an instant, while a UTC timestamp already identifies a point on the timeline. Problems arise when one kind is silently substituted for another during an import or conversion.

Choose the representation based on the question being asked. Use date-only arithmetic for calendar-day intervals, named IANA zones for local meeting conversions and explicit offsets or UTC for event logs. Preserve the original representation alongside a conversion when another application may interpret missing information differently.

  1. Identify whether the source is a date, a local date-time, a UTC instant or an epoch number. For epochs, confirm whether the unit is seconds or milliseconds.
  2. Supply a named source zone when converting a local time. Do not infer a region from an ambiguous abbreviation.
  3. Check the destination date as well as the clock time, especially when a conversion crosses midnight.
  4. For calendar attachments, distinguish all-day dates from timed events and inspect the imported result in the actual calendar application.

Interpret a local meeting time with an explicit offset

Example input

2026-01-15T09:00:00+01:00

Expected result

2026-01-15T08:00:00Z

The source is one hour ahead of UTC, so subtracting that hour gives eight UTC. The Z indicates UTC rather than a local time without a zone. This particular offset describes the instant shown; it is not a promise that the same region keeps that offset throughout the year. For a future local meeting, use the actual date and named zone.

Check before you continue

  • One calendar day is not always 24 elapsed hours in a region that changes its clocks. Use the arithmetic appropriate to the question.
  • During daylight-saving transitions, some local times occur twice or never occur. An ambiguous-time warning requires a deliberate choice.
  • A timezone-free string can be interpreted differently by two applications. Add the missing context explicitly instead of relying on the viewer's location.

8 of 8 entries

Date

Calendar date

2026-11-16

A date alone has no time of day or UTC offset.

Local

Local date-time

2026-11-16T09:30:00

A local clock reading without a zone does not identify a unique instant.

Instant

UTC timestamp

2026-11-16T08:30:00Z

Z identifies UTC in RFC 3339-style timestamps.

Instant

Offset timestamp

2026-11-16T09:30:00+01:00

The numeric offset identifies an instant, but not a region’s future daylight-saving rules.

Instant

Fractional seconds

2026-11-16T08:30:00.125Z

A decimal fraction refines the seconds component. Precision depends on the system.

Zone

Named time zone

Europe/Madrid

An IANA zone supplies regional rules; it is not an RFC 3339 numeric-offset suffix.

Calendar

iCalendar timed event

DTSTART:20261116T083000Z

Basic UTC form for an iCalendar event start.

Calendar

iCalendar all-day end

DTSTART;VALUE=DATE:20261116
DTEND;VALUE=DATE:20261117

The end date is exclusive: this represents one all-day event on November 16.