pub trait LocalizedDateTimeInput<T: DateTimeInput> {
    // Required methods
    fn datetime(&self) -> &T;
    fn week_of_month(&self) -> Result<WeekOfMonth, CalendarError>;
    fn week_of_year(
        &self
    ) -> Result<(FormattableYear, WeekOfYear), CalendarError>;
    fn day_of_week_in_month(&self) -> Result<DayOfWeekInMonth, CalendarError>;
    fn flexible_day_period(&self);
}
👎Deprecated since 1.5.0: not used in any ICU4X APIs
Expand description

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

Required Methods§

source

fn datetime(&self) -> &T

👎Deprecated since 1.5.0: not used in any ICU4X APIs

A reference to this instance’s DateTimeInput.

source

fn week_of_month(&self) -> Result<WeekOfMonth, CalendarError>

👎Deprecated since 1.5.0: not used in any ICU4X APIs

The week of the month.

For example, January 1, 2021 is part of the first week of January.

source

fn week_of_year(&self) -> Result<(FormattableYear, WeekOfYear), CalendarError>

👎Deprecated since 1.5.0: not used in any ICU4X APIs

The week number of the year and the corresponding year.

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

source

fn day_of_week_in_month(&self) -> Result<DayOfWeekInMonth, CalendarError>

👎Deprecated since 1.5.0: not used in any ICU4X APIs

The day of week in this month.

For example, July 8, 2020 is the 2nd Wednesday of July.

source

fn flexible_day_period(&self)

👎Deprecated since 1.5.0: not used in any ICU4X APIs

TODO(#487): Implement flexible day periods.

Implementors§