pub struct Tz { /* private fields */ }
Trait Implementations
sourceimpl TimeZone for Tz
impl TimeZone for Tz
type Offset = TzOffset
type Offset = TzOffset
The type of offset.
sourcefn get_offset_utc(&self, date_time: &OffsetDateTime) -> TzOffset
fn get_offset_utc(&self, date_time: &OffsetDateTime) -> TzOffset
Search for the given date time offset (assuming it is UTC) in this timezone.
sourcefn get_offset_local(
&self,
date_time: &OffsetDateTime
) -> OffsetResult<Self::Offset>
fn get_offset_local(
&self,
date_time: &OffsetDateTime
) -> OffsetResult<Self::Offset>
Search for the given date time offset (assuming it is already local) in this timezone.
sourcefn get_offset_primary(&self) -> Self::Offset
fn get_offset_primary(&self) -> Self::Offset
Gets the main/default offset in this timezone.
impl Eq for Tz
impl StructuralEq for Tz
impl StructuralPartialEq for Tz
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more