Trait 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.