#[non_exhaustive]pub enum TimeScale {
TAI,
TT,
ET,
TDB,
UTC,
GPST,
GST,
BDT,
QZSST,
}Expand description
Enum of the different time systems available
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TAI
TAI is the representation of an Epoch internally
TT
Terrestrial Time (TT) (previously called Terrestrial Dynamical Time (TDT))
ET
Ephemeris Time as defined by SPICE (slightly different from true TDB)
TDB
Dynamic Barycentric Time (TDB) (higher fidelity SPICE ephemeris time)
UTC
Universal Coordinated Time
GPST
GPS Time scale whose reference epoch is UTC midnight between 05 January and 06 January 1980; cf. https://gssc.esa.int/navipedia/index.php/Time_References_in_GNSS#GPS_Time_.28GPST.29. |UTC - TAI| = 19 Leap Seconds on that day.
GST
Galileo Time scale
BDT
BeiDou Time scale
QZSST
QZSS Time scale has the same properties as GPST but with dedicated clocks
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeScale
impl<'de> Deserialize<'de> for TimeScale
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<u8> for TimeScale
Allows conversion of a u8 into a TimeSystem.
Mapping: 1: TT; 2: ET; 3: TDB; 4: UTC; 5: GPST; 6: GST; 7: BDT; 8: QZSST; anything else: TAI
impl From<u8> for TimeScale
Allows conversion of a u8 into a TimeSystem. Mapping: 1: TT; 2: ET; 3: TDB; 4: UTC; 5: GPST; 6: GST; 7: BDT; 8: QZSST; anything else: TAI