Struct IanaTimeZoneOffset
pub struct IanaTimeZoneOffset {
tz: Tz,
offset: FixedTimespan,
}Available on crate feature
time only.Fields§
§tz: Tz§offset: FixedTimespanTrait Implementations§
§impl Offset for TzOffset
impl Offset for TzOffset
§fn fix(&self) -> FixedOffset
fn fix(&self) -> FixedOffset
Returns the fixed offset from UTC to the local time stored.
§impl OffsetComponents for TzOffset
impl OffsetComponents for TzOffset
§fn base_utc_offset(&self) -> TimeDelta
fn base_utc_offset(&self) -> TimeDelta
The base offset from UTC; this usually doesn’t change unless the government changes something
§fn dst_offset(&self) -> TimeDelta
fn dst_offset(&self) -> TimeDelta
The additional offset from UTC that is currently in effect; typically for daylight saving time
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