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,
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§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.§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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more