pub struct ZoneTime<'a>(_);
Expand description
The “STRANDARD” or “DAYLIGHT” sub-component of “VTIMEZONE”.
Each “VTIMEZONE” calendar component consists of a collection of one or more sub-components that describe the rule for a particular observance (either a Standard Time or a Daylight Saving Time observance). (see RFC 5545 3.6.5. Time Zone Component Component)
Implementations§
source§impl<'a> ZoneTime<'a>
impl<'a> ZoneTime<'a>
sourcepub fn standard<S, T, F>(dtstart: S, tz_offset_from: F, tz_offset_to: T) -> Selfwhere
S: Into<Cow<'a, str>>,
F: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
pub fn standard<S, T, F>(dtstart: S, tz_offset_from: F, tz_offset_to: T) -> Selfwhere
S: Into<Cow<'a, str>>,
F: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
Creates a new “STANDARD” sub-component. The “DTSTART”, “TZOFFSETFROM” and “TZOFFSETTO” properties are required. The “STANDARD” sub-component consists of a collection of properties that describe Standard Time.
sourcepub fn daylight<S, T, F>(dtstart: S, tz_offset_from: F, tz_offset_to: T) -> Selfwhere
S: Into<Cow<'a, str>>,
F: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
pub fn daylight<S, T, F>(dtstart: S, tz_offset_from: F, tz_offset_to: T) -> Selfwhere
S: Into<Cow<'a, str>>,
F: Into<Cow<'a, str>>,
T: Into<Cow<'a, str>>,
Creates a new “DAYLIGHT” sub-component. The “DTSTART”, “TZOFFSETFROM” and “TZOFFSETTO” properties are required. The “DAYLIGHT” sub-component consists of a collection of properties that describe Daylight Saving Time.
Trait Implementations§
source§impl<'a> Ord for ZoneTime<'a>
impl<'a> Ord for ZoneTime<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<ZoneTime<'a>> for ZoneTime<'a>
impl<'a> PartialEq<ZoneTime<'a>> for ZoneTime<'a>
source§impl<'a> PartialOrd<ZoneTime<'a>> for ZoneTime<'a>
impl<'a> PartialOrd<ZoneTime<'a>> for ZoneTime<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more