pub struct Tai;Expand description
TAI — International Atomic Time
- Epoch: 1958-01-01
- Base scale for all conversions
- TAI = TAI + 0
- Format:
"TAI +Ss Nns"
§Important
Inside this crate, TAI is used as the pivot for conversions, not as an absolute scale from 1958 onward (this is planned separately).
Trait Implementations§
Source§impl IntoScale<Tai> for Time<Gps>
impl IntoScale<Tai> for Time<Gps>
Source§fn into_scale(self) -> Result<Time<Tai>, GnssTimeError>
fn into_scale(self) -> Result<Time<Tai>, GnssTimeError>
GPS -> TAI: add 19 seconds (constant, no leap seconds).
use gnss_time::{Gps, IntoScale, Tai, Time};
let gps = Time::<Gps>::from_seconds(100);
let tai: Time<Tai> = gps.into_scale().unwrap();
assert_eq!(tai.as_seconds(), 119);Source§impl TimeScale for Tai
impl TimeScale for Tai
Source§const OFFSET_TO_TAI: OffsetToTai
const OFFSET_TO_TAI: OffsetToTai
Offset relative to TAI: Read more
Source§const EPOCH_CIVIL: CivilDate
const EPOCH_CIVIL: CivilDate
Civil epoch of the scale (where time == 0).
Source§const DISPLAY_STYLE: DisplayStyle = DisplayStyle::Simple
const DISPLAY_STYLE: DisplayStyle = DisplayStyle::Simple
Formatting style for display output.
impl Copy for Tai
impl Eq for Tai
impl StructuralPartialEq for Tai
Auto Trait Implementations§
impl Freeze for Tai
impl RefUnwindSafe for Tai
impl Send for Tai
impl Sync for Tai
impl Unpin for Tai
impl UnsafeUnpin for Tai
impl UnwindSafe for Tai
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