Skip to main content

deep_time/utc/
mod.rs

1//! UTC time-scale data and TAI−UTC conversion tables.
2//!
3//! [`Dt`](../struct.Dt.html) handles leap-second lookup, custom leap-second lists, and
4//! pre-1972 historical offsets. Import this module for the embedded tables ([`LEAP_SECS`],
5//! [`UTC_HIST_TABLE`]), their row types ([`LeapSec`], [`UtcHistRow`]), and [`LeapInfo`]
6//! (returned by [`Dt::leap_sec`](../struct.Dt.html#method.leap_sec)).
7//!
8//! Pre-1972 UTC uses piecewise-linear offsets; from 1972 onward, discrete leap seconds apply.
9
10mod historical;
11mod leap_seconds_fns;
12mod leap_seconds_list;
13
14pub use historical::{UTC_HIST_TABLE, UtcHistRow};
15pub use leap_seconds_fns::{IsLeapSec, LeapInfo};
16pub use leap_seconds_list::{LEAP_SECS, LeapSec};