Skip to main content

Module datetime

Module datetime 

Source
Expand description

xs:dateTime (accepted subset) and NTP timestamp readers.

The accepted xs:dateTime subset is project policy, recorded with its rationale and the full accept/reject table in private/specs-verified/dash/docs-specs/xs-datetime-subset.md (W3C XML Schema Part 2, 3.2.7; ISO/IEC 23009-1 5.8.5.7 DIRECT-VALUE, and the http-ntp/direct body). Calendar arithmetic is jiff’s; nothing here reads a clock.

Structs§

XsDateTime
A parsed instant plus how finely the source stated it.

Enums§

DateTimeError
Why a time string or timestamp was rejected.

Constants§

NTP_RESOLUTION_US
Resolution of one NTP timestamp, in microseconds.

Functions§

format_xs_datetime
Format Unix microseconds as an accepted xs:dateTime string (UTC, Z).
parse_ntp_timestamp
Read a 64-bit NTP timestamp (RFC 5905 Figure 3: 32-bit seconds since 1900-01-01T00:00:00Z, 32-bit binary fraction; era 0) as Unix microseconds.
parse_xs_datetime
Parse an xs:dateTime under the accepted-subset policy.