[][src]Trait gregor::UnambiguousTimeZone

pub trait UnambiguousTimeZone: TimeZone {
    fn to_unambiguous_timestamp(&self, d: &NaiveDateTime) -> UnixTimestamp { ... }
}

Implemented for time zones where LocalTimeConversionError never occurs, namely for Utc and FixedOffsetFromUtc.

Any UTC-offset change in a time zone creates local times that either don’t occur or occur twice. TimeZone::to_timestamp returns Err(LocalTimeConversionError) for such local times.

Provided methods

Loading content...

Implementors

impl UnambiguousTimeZone for FixedOffsetFromUtc[src]

impl UnambiguousTimeZone for Utc[src]

Loading content...