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§
- XsDate
Time - A parsed instant plus how finely the source stated it.
Enums§
- Date
Time Error - 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:dateTimestring (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:dateTimeunder the accepted-subset policy.