Skip to main content

Module clock

Module clock 

Source

Structs§

FakeClock
Fake clock for deterministic unit and scenario testing.
SystemClock
Production system clock maintaining a monotonic timestamp floor.

Traits§

Clock
Trait defining the clock interface for timestamp generation. CONTRACT: successive calls return strictly increasing values, even across application restarts and NTP corrections.

Functions§

format_iso8601_utc
Format a SystemTime in the canonical form YYYY-MM-DDTHH:MM:SS.ffffffZ.
parse_iso8601_utc
Strict parser for the canonical timestamp form (§4.1), accepting the legacy second-precision form for rows written by older crate versions.