Trait icu_datetime::input::TimeZoneInput

source ·
pub trait TimeZoneInput {
    // Required methods
    fn offset(&self) -> Option<UtcOffset>;
    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 [UtcOffset] is required, since it is the final format fallback.

All data represented in TimeZoneInput should be locale-agnostic.

Required Methods§

source

fn offset(&self) -> Option<UtcOffset>

The UTC offset.

source

fn time_zone_id(&self) -> Option<TimeZoneBcp47Id>

The IANA time-zone identifier.

source

fn metazone_id(&self) -> Option<MetazoneId>

The metazone identifier.

source

fn zone_variant(&self) -> Option<ZoneVariant>

The time variant (e.g. “daylight”, “standard”)

Implementations on Foreign Types§

source§

impl TimeZoneInput for CustomTimeZone

source§

fn offset(&self) -> Option<UtcOffset>

source§

fn time_zone_id(&self) -> Option<TimeZoneBcp47Id>

source§

fn metazone_id(&self) -> Option<MetazoneId>

source§

fn zone_variant(&self) -> Option<ZoneVariant>

Implementors§