Skip to main content

Module time

Module time 

Source
Expand description

Times as milliseconds since the Unix epoch, read on the UTC calendar.

Enums§

Unit
The finest calendar field a tick label shows.

Constants§

DAY
HOUR
MINUTE
SECOND

Functions§

civil
Year, month 1–12 and day 1–31 of the day days after 1970-01-01.
days
Days from 1970-01-01 to year-month-day.
describe
ms in full: the date, then the time of day unless it is midnight.
label
ms as a tick label showing fields down to unit.
parse
YYYY, YYYY-MM, YYYY-MM-DD, then optionally T or a space and HH:MM, :SS and .fff, and a trailing Z. Every time is UTC; an offset other than Z is None.
ticks
Ticks on calendar boundaries inside lo..=hi, about count of them, and the unit to label them with. Weeks start on Monday.