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§
sourcefn get_symbol_for_day_period(
&self,
day_period: DayPeriod,
length: FieldLength,
hour: IsoHour,
is_top_of_hour: bool,
) -> Result<&str, GetSymbolForDayPeriodError>
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’.