Trait time_tz::Offset

source ·
pub trait Offset {
    // Required methods
    fn to_utc(&self) -> UtcOffset;
    fn name(&self) -> &str;
    fn is_dst(&self) -> bool;
}
Expand description

This trait represents a particular timezone offset.

Required Methods§

source

fn to_utc(&self) -> UtcOffset

Converts this timezone offset to a UtcOffset.

source

fn name(&self) -> &str

Returns the name of this offset.

source

fn is_dst(&self) -> bool

Returns true if this offset is DST in the corresponding timezone, false otherwise.

Implementors§

source§

impl<'a> Offset for PosixTzOffset<'a>

Available on crate feature posix-tz only.