pub enum TimeZone {
Offset(i64),
Abbr {
abbr: String,
utc_offset: i64,
dst: bool,
},
Id(TzInfo),
}Expand description
A timezone, as DateTimeZone holds it.
Variants§
Offset(i64)
timezone_type 1: a fixed UTC offset in seconds (+05:30).
Abbr
timezone_type 2: an abbreviation (EST), its UTC offset without
DST, and whether it is a DST abbreviation.
Fields
Id(TzInfo)
timezone_type 3: an identifier (Europe/Paris).
Implementations§
Trait Implementations§
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Forget for TimeZone
impl Freeze for TimeZone
impl Move for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnsafeUnpin for TimeZone
impl UnwindSafe for TimeZone
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