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.
- Windows
Local Resolver - 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§
- Date
Resolver - 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’scivil_from_days). - days_
from_ civil - Days since 1970-01-01 (Howard Hinnant’s
days_from_civil). - days_
in_ 🔒month