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); }

A formattable calendar date and ISO time that takes the locale into account.

Required methods

fn datetime(&self) -> &T[src]

A reference to this instance’s DateTimeInput.

fn year_week(&self) -> Year[src]

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[src]

The week of the month according to UTS 35.

fn week_of_year(&self) -> WeekOfYear[src]

The week number of the year.

For example, December 31, 2020 is part of the first week of 2021.

fn flexible_day_period(&self)[src]

TODO(#487): Implement flexible day periods.

Loading content...

Implementors

Loading content...