pub enum Second {
Second,
FractionalSecond,
Millisecond,
}
Expand description
An enum for the possible symbols of a second field in a date pattern.
Variants§
Second
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
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
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<Second> for Second
impl PartialEq<Second> for Second
source§impl PartialOrd<Second> for Second
impl PartialOrd<Second> 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