#[repr(u8)]pub enum Hour {
H11 = 0,
H12 = 1,
H23 = 2,
H24 = 3,
}
Expand description
An enum for the possible symbols of an hour field in a date pattern.
Variants§
H11 = 0
Field symbol for numeric hour [0-11].
This field symbol is represented by the character K
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H12 = 1
Field symbol for numeric hour [1-12].
This field symbol is represented by the character h
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H23 = 2
Field symbol for numeric hour [0-23].
This field symbol is represented by the character H
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H24 = 3
Field symbol for numeric hour [1-24].
This field symbol is represented by the character k
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hour
impl<'de> Deserialize<'de> for Hour
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Hour, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Hour, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl From<Hour> for FieldSymbol
impl From<Hour> for FieldSymbol
source§fn from(input: Hour) -> FieldSymbol
fn from(input: Hour) -> FieldSymbol
source§impl Ord for Hour
impl Ord for Hour
source§impl PartialEq for Hour
impl PartialEq for Hour
source§impl PartialOrd for Hour
impl PartialOrd for Hour
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