Skip to main content

ToUTC

Trait ToUTC 

Source
pub trait ToUTC {
    // Required method
    fn to_utc(&self) -> TimeResult<UTC>;
}
Expand description

Convert a time scale to Coordinated Universal Time (UTC).

UTC is the basis for civil timekeeping. It tracks TAI but is adjusted by leap seconds to stay within 0.9 seconds of UT1 (Earth rotation time). Leap seconds are inserted (or theoretically removed) based on IERS announcements.

Implemented for: UTC (identity), TAI, TT

Note: This conversion requires the leap second table in this crate, which must be updated when new leap seconds are announced.

Required Methods§

Source

fn to_utc(&self) -> TimeResult<UTC>

Convert to Coordinated Universal Time.

Implementors§