Skip to main content

Module time

Module time 

Source
Expand description

Timestamp parsing — hand-rolled on purpose (invariant 6: the workspace takes no datetime dependency).

This lives in areev-core rather than in the crate that first needed it (areev-store’s importers) because the credential map’s expires_at needs the same parse, and authz sits below the store. One parser, not two: a second implementation would drift on exactly the inputs that matter least often and cost most — leap years, offsets, fractional seconds.

Functions§

iso8601_to_ms
Parse an ISO-8601 timestamp (“2024-07-26T10:29:11.982509-07:00”, “2026-01-05 09:00:00Z”, “2024-07-26”) to epoch milliseconds.
now_ms
Wall-clock epoch milliseconds.