pub struct Utc;Expand description
Universal Coordinated Time (UTC)
This is civil time as usually reported. It is discontinuous, having leap seconds inserted from time to time based on the Earth’s rotation.
This type is proleptic. For all dates prior to 1 Jan 1972, we presume 9 seconds have elapsed (like leaps) offsetting from TAI permanently by 9 seconds, even though that’s not what happened at the time (what happened at the time was that UTC wasn’t syncronized to TAI by integer leap seconds, but rather to other time sources and contained fractional leap seconds which are hard to reconstruct or even get a list of). For all dates prior to 1 January 1960, UTC didn’t exist, but we pretend it did, offset 9 seconds from TAI.
Trait Implementations§
impl Copy for Utc
impl Eq for Utc
impl StructuralPartialEq for Utc
Auto Trait Implementations§
impl Freeze for Utc
impl RefUnwindSafe for Utc
impl Send for Utc
impl Sync for Utc
impl Unpin for Utc
impl UnwindSafe for Utc
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