Skip to main content

Module time

Module time 

Source
Expand description

The calendar: instants and days in UTC, counted from 1970 in integers on the proleptic Gregorian calendar. There is no clock here: the caller passes now, in milliseconds.

  • At: an instant, read and written as RFC 3339.
  • Stamp: a minute as the venue writes one in an outcome’s description, YYYYMMDD-HHMM.
  • civil: the year, month and day of an instant.

Structs§

At
An instant: milliseconds since 1970 in UTC. Read from RFC 3339 and written as RFC 3339 with milliseconds and a Z (2026-09-01T10:00:00.000Z), a fixed width that sorts as text.
BadAt
Stamp
One UTC minute: 20261001-0000 on the wire, 2026-10-01 00:00Z to read.

Constants§

DAY_MS
Milliseconds in a day.

Functions§

civil
The year, month and day of an instant.
month_name
A month’s short English name, Jan for 1.