pub trait ToTT {
// Required method
fn to_tt(&self) -> TimeResult<TT>;
}Expand description
Convert a time scale to Terrestrial Time (TT).
TT is the time scale for geocentric ephemerides and Earth-based observations. It differs from TAI by exactly 32.184 seconds (TT = TAI + 32.184s), a value chosen for continuity with the older ET (Ephemeris Time) scale.
Implemented for: TT (identity), TAI, TCG
For TDB → TT, use ToTTFromTDB which requires observer location.
For UT1 → TT, use ToTTWithDeltaT which requires Delta-T.
Required Methods§
Sourcefn to_tt(&self) -> TimeResult<TT>
fn to_tt(&self) -> TimeResult<TT>
Convert to Terrestrial Time.
Implementors§
impl ToTT for TAI
Convert TAI to TT by adding the fixed 32.184 second offset.
The offset is added to whichever Julian Date component has smaller magnitude to preserve maximum precision in the two-part representation.
impl ToTT for TCG
impl ToTT for TDB
impl ToTT for TT
Identity conversion for TT.