pub enum TimeScale {
UTC,
TAI,
TT,
TDB,
ET,
GPST,
GST,
BDT,
QZSST,
}Expand description
Time scales supported by Graphcal.
Each variant maps 1:1 to a hifitime::TimeScale variant.
UTC is the default for civil datetime values.
Variants§
UTC
Coordinated Universal Time — default for civil use.
TAI
International Atomic Time — continuous, the internal reference.
TT
Terrestrial Time — TAI + 32.184 s, used in orbital mechanics.
TDB
Barycentric Dynamical Time — used for solar system ephemerides.
ET
Ephemeris Time (NAIF/SPICE variant, ≈ TDB).
GPST
GPS Time — TAI − 19 s.
GST
Galileo System Time.
BDT
BeiDou Time.
QZSST
QZSS Time.
Implementations§
Source§impl TimeScale
impl TimeScale
Sourcepub const ALL_NAMES: &[&str]
pub const ALL_NAMES: &[&str]
All supported time scale names, for error messages and validation.
Sourcepub const fn to_hifitime(self) -> TimeScale
pub const fn to_hifitime(self) -> TimeScale
Convert to the corresponding hifitime::TimeScale.
Sourcepub const fn from_hifitime(ts: TimeScale) -> Self
pub const fn from_hifitime(ts: TimeScale) -> Self
Convert from hifitime::TimeScale.
Trait Implementations§
impl Copy for TimeScale
impl Eq for TimeScale
impl StructuralPartialEq for TimeScale
Auto Trait Implementations§
impl Freeze for TimeScale
impl RefUnwindSafe for TimeScale
impl Send for TimeScale
impl Sync for TimeScale
impl Unpin for TimeScale
impl UnsafeUnpin for TimeScale
impl UnwindSafe for TimeScale
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.