pub struct TzOffset { /* private fields */ }
Trait Implementations§
source§impl Offset for TzOffset
impl Offset for TzOffset
source§fn fix(&self) -> FixedOffset
fn fix(&self) -> FixedOffset
Returns the fixed offset from UTC to the local time stored.
source§impl OffsetComponents for TzOffset
impl OffsetComponents for TzOffset
source§fn base_utc_offset(&self) -> Duration
fn base_utc_offset(&self) -> Duration
The base offset from UTC; this usually doesn’t change unless the government changes something
source§fn dst_offset(&self) -> Duration
fn dst_offset(&self) -> Duration
The additional offset from UTC that is currently in effect; typically for daylight saving time
source§impl OffsetName for TzOffset
impl OffsetName for TzOffset
impl Copy for TzOffset
impl Eq for TzOffset
impl StructuralPartialEq for TzOffset
Auto Trait Implementations§
impl Freeze for TzOffset
impl RefUnwindSafe for TzOffset
impl Send for TzOffset
impl Sync for TzOffset
impl Unpin for TzOffset
impl UnwindSafe for TzOffset
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)