pub struct Tz { /* private fields */ }
Available on crate feature
db
only.Trait Implementations§
source§impl TimeZone for Tz
impl TimeZone for Tz
source§fn 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.
source§fn 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.
source§fn 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§
impl RefUnwindSafe for Tz
impl Send for Tz
impl Sync for Tz
impl Unpin for Tz
impl UnwindSafe for Tz
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