pub trait TimeZone {
    type Offset: Offset;

    fn get_offset_utc(&self, date_time: &OffsetDateTime) -> Self::Offset;
    fn get_offset_local(
        &self,
        date_time: &OffsetDateTime
    ) -> OffsetResult<Self::Offset>; fn get_offset_primary(&self) -> Self::Offset; fn name(&self) -> &str; }
Expand description

This trait represents a timezone provider.

Required Associated Types

The type of offset.

Required Methods

Search for the given date time offset (assuming it is UTC) in this timezone.

Search for the given date time offset (assuming it is already local) in this timezone.

Gets the main/default offset in this timezone.

Returns the name of this timezone.

Implementors