Trait icu_datetime::date::LocalizedDateTimeInput [−][src]
pub trait LocalizedDateTimeInput<T: DateTimeInput> { fn datetime(&self) -> &T; fn year_week(&self) -> Year; fn week_of_month(&self) -> WeekOfMonth; fn week_of_year(&self) -> WeekOfYear; fn flexible_day_period(&self); }
Expand description
A formattable calendar date and ISO time that takes the locale into account.
Required methods
A reference to this instance’s DateTimeInput
.
The year number according to week numbering.
For example, December 31, 2020 is part of the first week of 2021.
fn week_of_month(&self) -> WeekOfMonth
fn week_of_month(&self) -> WeekOfMonth
The week of the month according to UTS 35.
fn week_of_year(&self) -> WeekOfYear
fn week_of_year(&self) -> WeekOfYear
The week number of the year.
For example, December 31, 2020 is part of the first week of 2021.
fn flexible_day_period(&self)
fn flexible_day_period(&self)
TODO(#487): Implement flexible day periods.