Struct OffsetInfo
pub struct OffsetInfo { /* private fields */ }
Information associated with an offset when doing a time zone transition lookup.
Callers should generally only need the offset. This exposes additional information such as the time zone abbreviation or whether a timestamp is in daylight saving time or not.
Implementations
impl OffsetInfo
fn offset(&self) -> OffsetReturns the offset corresponding to this time zone transition. All instants at and following this transition's timestamp (and before the next transition's timestamp) need to apply this offset from UTC to get the civil or "local" time in the corresponding time zone.
fn abbreviation(&self) -> &AbbreviationReturns the time zone abbreviation corresponding to this time zone transition.
fn into_abbreviation(self) -> AbbreviationConsumes this offset info and returns its abbreviation.
fn dst(&self) -> DstReturns whether daylight saving time is enabled for this time zone transition.
Trait Implementations
impl Clone for OffsetInfo
fn clone(&self) -> Self
impl Debug for OffsetInfo
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for OffsetInfo
impl Hash for OffsetInfo
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for OffsetInfo
fn eq(&self, other: &Self) -> bool