Struct Transition
pub struct Transition { /* private fields */ }
A representation a single time zone transition.
Implementations
impl Transition
fn timestamp(&self) -> TimestampReturns the timestamp at which this transition began.
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 dst(&self) -> DstReturns whether daylight saving time is enabled for this time zone transition.
fn into_offset_info(self) -> OffsetInfoConsumes this transition and returns the underlying
OffsetInfo.
Trait Implementations
impl Clone for Transition
fn clone(&self) -> Self
impl Debug for Transition
fn fmt(&self, f: &mut Formatter<'_>) -> Result