Skip to main content

Module scale

Module scale 

Source
Expand description

Frozen scale set.

Every scale is a zero-sized marker type that identifies a scientifically distinct time axis. The Scale trait is sealed — downstream crates cannot add new scales.

  • Coordinate scales (TAI, TT, TDB, TCG, TCB, UT1, UTC) implement CoordinateScale and support raw-axis constructors, accessors, and instant arithmetic on Time<S>.
  • The civil scale UTC still does not implement ContinuousScale: it shares the internal instant axis used by TAI, but civil labels and leap-second interpretation remain table-driven.

Structs§

TAI
International Atomic Time. Continuous SI-second clock.
TCB
Barycentric Coordinate Time (IAU 2006 B3). Linear relation to TDB.
TCG
Geocentric Coordinate Time (IAU 2000 B1.9). Linear rate difference to TT.
TDB
Barycentric Dynamical Time.
TT
Terrestrial Time. The dynamical reference scale in this crate.
UT1
Universal Time 1 — Earth-rotation time axis.
UTC
Coordinated Universal Time.

Traits§

ContinuousScale
Witness that a scale is both coordinate-bearing and physically continuous.
CoordinateScale
Witness that a scale is continuous and supports direct arithmetic. UTC deliberately does not implement this: it has raw-axis accessors through CoordinateScale, but its civil interpretation remains leap-second-aware and table-driven.
Scale
Marker trait for a scientifically distinct time scale.