pub struct Tzinfo {
pub timezone: String,
pub utc_datetime: DateTime<Utc>,
pub datetime: DateTime<FixedOffset>,
pub dst_from: Option<DateTime<Utc>>,
pub dst_until: Option<DateTime<Utc>>,
pub dst_period: bool,
pub raw_offset: isize,
pub dst_offset: isize,
pub utc_offset: FixedOffset,
pub abbreviation: String,
pub week_number: i32,
}Fields§
§timezone: StringTimezone name
utc_datetime: DateTime<Utc>UTC time
datetime: DateTime<FixedOffset>Local time
dst_from: Option<DateTime<Utc>>Start of DST period
dst_until: Option<DateTime<Utc>>End of DST period
dst_period: boolAre we in DST period ?
raw_offset: isizeNormal offset to GMT, in seconds
dst_offset: isizeDST offset to GMT, in seconds
utc_offset: FixedOffsetcurrent offset to GMT, in +/-HH:MM
abbreviation: StringTimezone abbreviation
week_number: i32Week number
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tzinfo
impl RefUnwindSafe for Tzinfo
impl Send for Tzinfo
impl Sync for Tzinfo
impl Unpin for Tzinfo
impl UnwindSafe for Tzinfo
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