Trait icu_datetime::input::TimeZoneInput
source · pub trait TimeZoneInput {
// Required methods
fn gmt_offset(&self) -> Option<GmtOffset>;
fn time_zone_id(&self) -> Option<TimeZoneBcp47Id>;
fn metazone_id(&self) -> Option<MetazoneId>;
fn zone_variant(&self) -> Option<ZoneVariant>;
}
Expand description
Representation of a formattable time zone.
Only the GmtOffset
is required, since it is the final format fallback.
All data represented in TimeZoneInput
should be locale-agnostic.
Required Methods§
sourcefn gmt_offset(&self) -> Option<GmtOffset>
fn gmt_offset(&self) -> Option<GmtOffset>
The GMT offset in Nanoseconds.
sourcefn time_zone_id(&self) -> Option<TimeZoneBcp47Id>
fn time_zone_id(&self) -> Option<TimeZoneBcp47Id>
The IANA time-zone identifier.
sourcefn metazone_id(&self) -> Option<MetazoneId>
fn metazone_id(&self) -> Option<MetazoneId>
The metazone identifier.
sourcefn zone_variant(&self) -> Option<ZoneVariant>
fn zone_variant(&self) -> Option<ZoneVariant>
The time variant (e.g. “daylight”, “standard”)