pub struct TimeZone<'a>(_);
Expand description
The “VTIMEZONE” calendar component.
A TimeZone
component is unambiguously defined by the set of time measurement rules (ZoneTime
) determined by the governing body for a given geographic area. (see RFC 5545 3.6.5. Time Zone Component Component)
Implementations§
source§impl<'a> TimeZone<'a>
impl<'a> TimeZone<'a>
sourcepub fn new<S>(tzid: S, definition: ZoneTime<'a>) -> Selfwhere
S: Into<Cow<'a, str>>,
pub fn new<S>(tzid: S, definition: ZoneTime<'a>) -> Selfwhere
S: Into<Cow<'a, str>>,
Creates a new “VTIMEZONE” calendar component. The “TZID” property and at least one zone time component (“STANDARD” or “DAYLIGHT” sub-component) are required.
sourcepub fn push<P>(&mut self, property: P)where
P: Into<Property<'a>>,
pub fn push<P>(&mut self, property: P)where
P: Into<Property<'a>>,
Adds a property to the time zone. The RFC 5545 specifies which properties can be added to a time zone.
sourcepub fn add_zonetime(&mut self, zone_time: ZoneTime<'a>)
pub fn add_zonetime(&mut self, zone_time: ZoneTime<'a>)
Adds an additional zone time to the time zone. For more time zone definitions, the IANA database could prove helpful.
Trait Implementations§
source§impl<'a> Ord for TimeZone<'a>
impl<'a> Ord for TimeZone<'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<TimeZone<'a>> for TimeZone<'a>
impl<'a> PartialEq<TimeZone<'a>> for TimeZone<'a>
source§impl<'a> PartialOrd<TimeZone<'a>> for TimeZone<'a>
impl<'a> PartialOrd<TimeZone<'a>> for TimeZone<'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