pub struct TimezoneDisplay {
pub utc_offset: i32,
pub name: String,
pub in_daylight_saving_time: bool,
}
Expand description
Information useful for displaying the timezone of a specific datetime
.
This information may vary within a single timezone
to reflect daylight
saving time adjustments.
Fields§
§utc_offset: i32
The number of seconds difference between UTC time and the local time of the timezone.
The returned value will always be less than 86400 which is the number of seconds in a day (246060).
In implementations that do not expose an actual time zone, this should return 0.
name: String
The abbreviated name of the timezone to display to a user. The name
UTC
indicates Coordinated Universal Time. Otherwise, this should
reference local standards for the name of the time zone.
In implementations that do not expose an actual time zone, this
should be the string UTC
.
In time zones that do not have an applicable name, a formatted
representation of the UTC offset may be returned, such as -04:00
.
in_daylight_saving_time: bool
Whether daylight saving time is active.
In implementations that do not expose an actual time zone, this should return false.
Trait Implementations§
Source§impl Clone for TimezoneDisplay
impl Clone for TimezoneDisplay
Source§fn clone(&self) -> TimezoneDisplay
fn clone(&self) -> TimezoneDisplay
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TimezoneDisplay
impl Debug for TimezoneDisplay
impl ComponentType for TimezoneDisplay
impl Lift for TimezoneDisplay
impl Lower for TimezoneDisplay
Auto Trait Implementations§
impl Freeze for TimezoneDisplay
impl RefUnwindSafe for TimezoneDisplay
impl Send for TimezoneDisplay
impl Sync for TimezoneDisplay
impl Unpin for TimezoneDisplay
impl UnwindSafe for TimezoneDisplay
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self
file descriptor. Read more