Enum icu_datetime::fields::Day
source · #[repr(u8)]pub enum Day {
DayOfMonth = 0,
DayOfYear = 1,
DayOfWeekInMonth = 2,
ModifiedJulianDay = 3,
}
Expand description
An enum for the possible symbols of a day field in a date pattern.
Variants§
DayOfMonth = 0
Field symbol for day of month (numeric).
This field symbol is represented by the character d
in a date formatting pattern string.
For more details, see documentation on date field symbols.
DayOfYear = 1
Field symbol for day of year (numeric).
This field symbol is represented by the character D
in a date formatting pattern string.
For more details, see documentation on date field symbols.
DayOfWeekInMonth = 2
Field symbol for the day of week occurrence relative to the month (numeric).
For the example "2nd Wed in July"
, this field would provide "2"
. Should likely be paired with the Weekday
field.
This field symbol is represented by the character F
in a date formatting pattern string.
For more details, see documentation on date field symbols.
ModifiedJulianDay = 3
Field symbol for the modified Julian day (numeric).
The value of this field differs from the conventional Julian day number in a couple of ways, which are based on measuring relative to the local time zone.
This field symbol is represented by the character g
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Day
impl<'de> Deserialize<'de> for Day
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl From<Day> for FieldSymbol
impl From<Day> for FieldSymbol
source§impl Ord for Day
impl Ord for Day
source§impl PartialOrd for Day
impl PartialOrd for Day
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 moresource§impl<'a> Yokeable<'a> for Day
impl<'a> Yokeable<'a> for Day
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where F: 'static + for<'b> FnOnce(&'b mut Self::Output),
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more