Expand description
XSD date/time/duration parsers.
XSD §3.2.6–3.2.13 — eight calendar types plus xs:duration. All use
an ISO-8601 subset; XSD diverges from full ISO-8601 in a few ways
(no week dates, year zero forbidden, leap-second support).
Timezone:
- Optional on every type.
Zmeans UTC (offset 0).+HH:MM/-HH:MMranges from-14:00to+14:00.
Comparison of two values without timezones is partial — they’re treated as distinct points in the implicit local timezone and compare equal only on exact field match. Comparisons with at least one timezone-bearing operand normalise to UTC.
Structs§
- XsdDate
- XsdDate
Time - XsdDuration
xs:duration— split into a months part (years×12 + months) and a seconds part (days×86400 + h×3600 + m×60 + s). This split is forced by the spec: months cannot be reduced to seconds without a reference date. Two durations compare equal only when both parts match.- XsdGDay
- XsdG
Month - XsdG
Month Day - XsdG
Year - XsdG
Year Month - XsdTime