Trait icu_datetime::date::TimeZoneInput [−][src]
pub trait TimeZoneInput { fn gmt_offset(&self) -> GmtOffset; fn time_zone_id(&self) -> Option<&str>; fn metazone_id(&self) -> Option<&str>; fn time_variant(&self) -> Option<&str>; }
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
[src]
The GMT offset in Nanoseconds.
fn time_zone_id(&self) -> Option<&str>
[src]
The IANA time-zone identifier. TODO(#606) switch this to BCP-47 identifier.
fn metazone_id(&self) -> Option<&str>
[src]
The metazone identifier. TODO(#528) switch to a compact, stable ID.
fn time_variant(&self) -> Option<&str>
[src]
The time variant (e.g. “daylight”, “standard”) TODO(#619) use TinyStr for time variants.
Implementors
impl TimeZoneInput for MockTimeZone
[src]
impl TimeZoneInput for MockTimeZone
[src]fn gmt_offset(&self) -> GmtOffset
[src]
fn time_zone_id(&self) -> Option<&str>
[src]
fn metazone_id(&self) -> Option<&str>
[src]
fn time_variant(&self) -> Option<&str>
[src]
impl TimeZoneInput for MockZonedDateTime
[src]
impl TimeZoneInput for MockZonedDateTime
[src]