#[repr(u8)]pub enum TimeZone {
LowerZ = 0,
UpperZ = 1,
UpperO = 2,
LowerV = 3,
UpperV = 4,
LowerX = 5,
UpperX = 6,
}
Expand description
An enum for the possible symbols of a time zone field in a date pattern.
Variants§
LowerZ = 0
Field symbol for the specific non-location format of a time zone.
For example: “Pacific Standard Time”
This field symbol is represented by the character z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperZ = 1
Field symbol for any of: the ISO8601 basic format with hours, minutes and optional seconds fields, the long localized GMT format, or the ISO8601 extended format with hours, minutes and optional seconds fields.
This field symbol is represented by the character Z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperO = 2
Field symbol for the localized GMT format of a time zone.
For example: “GMT-07:00”
This field symbol is represented by the character O
in a date formatting pattern string.
For more details, see documentation on date field symbols.
LowerV = 3
Field symbol for the generic non-location format of a time zone.
For example: “Pacific Time”
This field symbol is represented by the character v
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperV = 4
Field symbol for any of: the time zone id, time zone exemplar city, or generic location format.
This field symbol is represented by the character V
in a date formatting pattern string.
For more details, see documentation on date field symbols.
LowerX = 5
Field symbol for either the ISO8601 basic format or ISO8601 extended format, with an optional ISO8601 UTC indicator Z
.
This field symbol is represented by the character x
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperX = 6
Field symbol for either the ISO8601 basic format or ISO8601 extended format. This does not allow an
optional ISO8601 UTC indicator Z
, whereas TimeZone::LowerX
allows the optional Z
.
This field symbol is represented by the character X
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl AsULE for TimeZone
impl AsULE for TimeZone
§type ULE = TimeZoneULE
type ULE = TimeZoneULE
Self
. Read moresource§fn to_unaligned(self) -> <TimeZone as AsULE>::ULE
fn to_unaligned(self) -> <TimeZone as AsULE>::ULE
source§impl<'de> Deserialize<'de> for TimeZone
impl<'de> Deserialize<'de> for TimeZone
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZone, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TimeZone, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl From<TimeZone> for FieldSymbol
impl From<TimeZone> for FieldSymbol
source§fn from(input: TimeZone) -> FieldSymbol
fn from(input: TimeZone) -> FieldSymbol
source§impl Ord for TimeZone
impl Ord for TimeZone
source§impl PartialEq for TimeZone
impl PartialEq for TimeZone
source§impl PartialOrd for TimeZone
impl PartialOrd for TimeZone
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more