Skip to main content

Module dates

Module dates 

Source
Expand description

Civil-date ↔ FILETIME conversion for dm: filters.

dm: bounds are interpreted in the local time zone (docs/ARCHITECTURE.md C-4). The conversion is injected via DateResolver so the parser/compiler stay pure and tests can use UTC.

Structs§

Civil
A proleptic Gregorian calendar date with no time-of-day or zone.
UtcResolver
Pure UTC resolver — deterministic, used by unit tests.
WindowsLocalResolver
Local-time-zone resolver backed by the Windows time-zone/DST rules.

Constants§

FILETIME_UNIX_EPOCH
FILETIME ticks (100 ns since 1601-01-01) at the Unix epoch (1970-01-01).
TICKS_PER_SECOND 🔒

Traits§

DateResolver
Converts a civil date (midnight) to FILETIME ticks.

Functions§

civil_from_days
Inverse of days_from_civil: the civil date for a day count since 1970-01-01 (Howard Hinnant’s civil_from_days).
days_from_civil
Days since 1970-01-01 (Howard Hinnant’s days_from_civil).
days_in_month 🔒