Basic module

Calendar_Time

structSource

A time broken into year, month, day and time of day. Months, days of the month and days of the week count from 0, so January is 0 and Sunday is 0. Make one with to_calendar.

Example↗
ct := to_calendar(APOLLO_TIME_FOR_JAN_1_1970);
assert(ct.year == 1970 && ct.day_of_week_starting_at_0 == 4); // a Thursday

Fields

year: s32
month_starting_at_0: s8
day_of_month_starting_at_0: s8
day_of_week_starting_at_0: s8
hour: s8
minute: s8
second: s8
millisecond: s16
time_zone: Time_Zone

See also