pub enum TimeSystem {
Gps,
Glo,
Gal,
Tai,
Utc,
Qzs,
Bdt,
Irn,
}Expand description
The time system the epoch records are stamped in, from the SP3 %c header (SP3-c/d field 4).
It matters because an SP3 epoch is not a time until the scale is named: IGS products are GPS time, IGLOS products are UTC, and the two differ by the whole leap-second count.
Variants§
Gps
GPS time. The default the format assigns when the field is absent or blank.
Glo
GLONASS time, which is UTC(SU) plus three hours and carries leap seconds.
Gal
Galileo system time.
Tai
International Atomic Time.
Utc
Coordinated Universal Time.
Qzs
QZSS time.
Bdt
BeiDou time.
Irn
NavIC (IRNSS) time.
Implementations§
Source§impl TimeSystem
impl TimeSystem
Sourcepub const fn tai_offset_seconds(self) -> Option<f64>
pub const fn tai_offset_seconds(self) -> Option<f64>
Seconds to add to an epoch in this system to reach TAI, where that offset is a constant.
None for TimeSystem::Utc and TimeSystem::Glo, whose offset is the leap-second count
at the epoch — a property of the date, not of the scale, so it is the caller’s leap-second
table to apply and not this type’s to guess.