Expand description
The parsed, still-textual semantic model of a tzdata source: the records the parser produces and the compiler consumes.
These types mirror the three tzdata line kinds (Rule, Zone, Link) plus the
continuation structure of zones. They are intentionally close to the source — value
interpretation (calendar math, transition generation) happens later, in compile.
Re-exports§
pub use leap::LeapSecond;pub use leap::LeapTable;pub use time::Offset;pub use time::Save;pub use time::TimeOfDay;pub use time::TimeRef;
Modules§
- calendar
- Proleptic Gregorian calendar arithmetic, implemented in-house.
- leap
- The leap-second table model (T11) — a distinct time model, not a transition stream.
- time
- Parsing of tzdata time-ish fields: UT offsets (
STDOFF), saved amounts (SAVEand inline rules), and times-of-day (AT, and the time part ofUNTIL).
Structs§
- Database
- The whole parsed source: zones, links, and rules keyed by name.
- Link
Record - A
Linkline:LINK-NAMEis an alias forTARGET. - Origin
- Where a record came from, for diagnostics.
- Rule
Record - A
Ruleline. Stored verbatim-ish in T1 (only validated, not yet expanded); the transition compiler in T2 consumes the typed fields. - Until
- The
UNTILfield: a partially-specified wall/standard/UT instant. - ZoneEra
- One era of a zone (one
Zone/continuation line up to itsUNTIL). - Zone
Record - A
Zoneplus its continuation lines.