This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

getLocaleExtraDayPeriods

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