Trait icu_datetime::provider::date_time::TimeSymbols

source ·
pub(crate) trait TimeSymbols {
    // Required method
    fn get_symbol_for_day_period(
        &self,
        day_period: DayPeriod,
        length: FieldLength,
        hour: IsoHour,
        is_top_of_hour: bool,
    ) -> Result<&str, GetSymbolForDayPeriodError>;
}

Required Methods§

source

fn get_symbol_for_day_period( &self, day_period: DayPeriod, length: FieldLength, hour: IsoHour, is_top_of_hour: bool, ) -> Result<&str, GetSymbolForDayPeriodError>

Gets the day period symbol.

Internally, ‘noon’ and ‘midnight’ should fall back to ‘am’ and ‘pm’.

Implementors§

source§

impl<'data> TimeSymbols for TimeSymbolsV1<'data>