Trait icu_datetime::date::TimeZoneInput
source · [−]pub trait TimeZoneInput {
fn gmt_offset(&self) -> GmtOffset;
fn time_zone_id(&self) -> Option<&TimeZoneBcp47Id>;
fn metazone_id(&self) -> Option<&MetaZoneId>;
fn time_variant(&self) -> Option<&TinyStr8>;
}
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
fn gmt_offset(&self) -> GmtOffset
fn gmt_offset(&self) -> GmtOffset
The GMT offset in Nanoseconds.
fn time_zone_id(&self) -> Option<&TimeZoneBcp47Id>
fn time_zone_id(&self) -> Option<&TimeZoneBcp47Id>
The IANA time-zone identifier.
fn metazone_id(&self) -> Option<&MetaZoneId>
fn metazone_id(&self) -> Option<&MetaZoneId>
The metazone identifier.
fn time_variant(&self) -> Option<&TinyStr8>
fn time_variant(&self) -> Option<&TinyStr8>
The time variant (e.g. “daylight”, “standard”)