getLocaleExtraDayPeriods

function

Day Periods indicate roughly how the day is broken up in different languages (e.g. morning, noon, afternoon, midnight, ...). You should use the function getLocaleExtraDayPeriodRules to determine which period to use. You should fallback to AM/PM when there are no day periods available.

See more...

getLocaleExtraDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): string[]

Parameters

locale

Type: string.

formStyle

Type: FormStyle.

width

Type: TranslationWidth.

Returns

string[]

Description

Note: this is only available if you load the full locale data. See the "I18n guide" to know how to import additional locale data.

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/common/getLocaleExtraDayPeriods