Skip to main content

Module utc

Module utc 

Source
Expand description

UTC time-scale data and TAI−UTC conversion tables.

Dt handles leap-second lookup, custom leap-second lists, and pre-1972 historical offsets. Import this module for the embedded tables (LEAP_SECS, UTC_HIST_TABLE), their row types (LeapSec, UtcHistRow), and LeapInfo (returned by Dt::leap_sec).

Pre-1972 UTC uses piecewise-linear offsets; from 1972 onward, discrete leap seconds apply.

Structs§

LeapInfo
Leap-second details for an instant, returned by Dt::leap_sec and related methods.
LeapSec
Holds info about a leap-second transition. Used by LEAP_SECS.
UtcHistRow
Holds info about a pre-1972 historical UTC offset interval. Used by UTC_HIST_TABLE.

Enums§

IsLeapSec
Indicates whether a queried instant falls exactly on a leap second transition.

Constants§

LEAP_SECS
Embedded leap-seconds list shipped with the library.
UTC_HIST_TABLE
Authoritative pre-1972 TAI−UTC entries from the official USNO tai-utc.dat file.
These 13 intervals contain the frequency offsets and linear drifts used by the IAU SOFA library and all other high-precision astronomy/time-conversion software before UTC switched to pure leap-second mode.