Basic module

to_calendar

procedureSource

Breaks at into year, month, day and time of day.

to_calendar :: (at: Apollo_Time, time_zone := Time_Zone.UTC) -> Calendar_Time

Parameters

time_zone := Time_Zone.UTC
.UTC, or .LOCAL for the computer's own time zone.

Returns

Example↗
ct := to_calendar(APOLLO_TIME_FOR_JAN_1_1970);
assert(ct.year == 1970 && ct.hour == 0);

See also