#[repr(u8)]pub enum Second {
Second = 0,
FractionalSecond = 1,
Millisecond = 2,
}
Expand description
An enum for the possible symbols of a second field in a date pattern.
Variants§
Second = 0
Field symbol for second (numeric).
This field symbol is represented by the character s
in a date formatting pattern string.
For more details, see documentation on date field symbols.
FractionalSecond = 1
Field symbol for fractional second (numeric).
Produces the number of digits specified by the field length.
This field symbol is represented by the character S
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Millisecond = 2
Field symbol for milliseconds in day (numeric).
This field behaves exactly like a composite of all time-related fields, not including the zone fields.
This field symbol is represented by the character A
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Second
impl<'de> Deserialize<'de> for Second
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Second, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Second, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl From<Second> for FieldSymbol
impl From<Second> for FieldSymbol
source§fn from(input: Second) -> FieldSymbol
fn from(input: Second) -> FieldSymbol
source§impl Ord for Second
impl Ord for Second
source§impl PartialEq for Second
impl PartialEq for Second
source§impl PartialOrd for Second
impl PartialOrd for Second
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