Expand description
Calendar arithmetic (Howard Hinnant’s algorithms) and the clock.
Functions§
- clear_
fixed_ clock - Restore the system clock.
- date_
add_ span - Add months and days to a date (calendar-aware). Uses Howard Hinnant’s date algorithms for correct month-end handling (e.g. Jan 31 + 1 month → Feb 28/29).
- days_
in_ month - The number of days in a given month (1-indexed).
- moment_
add_ span - Add a calendar span (
monthsthendays) to a SmoothUTC instant — the civil (wall-clock) operation: months clamp at end-of-month and respect leap years, the time-of-day rides along untouched. Distinct from adding a physicalDuration(which is just nanosecond arithmetic). Delegates to the samebase::temporal::add_spanthe AOT mirror uses, so the tiers cannot diverge. - now
- The
nowbuiltin identifier. - set_
fixed_ clock - Pin
today/nowto a fixed instant (tests). - today
- The
todaybuiltin identifier.