pub struct UnixTime;Expand description
Unix Time — seconds since 1970-01-01T00:00:00 UTC, stored as days.
This scale applies the cumulative leap-second offset from IERS Bulletin C to convert between UTC-epoch Unix timestamps and the uniform TT axis. The leap-second table covers 1972–2017 (28 insertions). Prior to 1972 (before the leap-second system) the offset is fixed at 10 s (the initial TAI − UTC value adopted on 1972-01-01).
§References
- IERS Bulletin C (leap second announcements)
- POSIX.1-2017 §4.16 (definition of Unix time)
Trait Implementations§
Source§impl PartialOrd for UnixTime
impl PartialOrd for UnixTime
impl Copy for UnixTime
impl StructuralPartialEq for UnixTime
Auto Trait Implementations§
impl Freeze for UnixTime
impl RefUnwindSafe for UnixTime
impl Send for UnixTime
impl Sync for UnixTime
impl Unpin for UnixTime
impl UnsafeUnpin for UnixTime
impl UnwindSafe for UnixTime
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