Skip to main content

Module temporal

Module temporal 

Source
Expand description

The temporal values of a compiled program: a calendar date, an instant, a time of day and a calendar span, with the arithmetic and the printing every tier shares (base’s temporal), and each as an OtherValue a LogosValue holds, so the exact extension’s values meet them as the interpreter’s do. Reading the clock is the system’s (logicaffeine_system::temporal::now).

Structs§

LogosDate
Date stored as days since Unix epoch (1970-01-01).
LogosMoment
Moment stored as nanoseconds since Unix epoch.
LogosSpan
Calendar span with separate month and day components.
LogosTime
Time-of-day stored as nanoseconds from midnight — the wall-clock face of a Moment, with no date or zone. Renders HH:MM:SS[.frac], lossless to the nanosecond (the AOT mirror of the interpreter’s Time).