{ "id": "api/common/getLocaleExtraDayPeriodRules", "title": "getLocaleExtraDayPeriodRules", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getLocaleExtraDayPeriodRuleslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Retrieves locale-specific rules used to determine which day period to use\nwhen more than one period is defined for a locale.

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[]\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n locale\n string\n

A locale code for the locale format rules to use.

\n\n
\n\n \n
Returns
\n

(Time | [Time, Time])[]: The rules for the locale, a single time value or array of from-time, to-time,\nor null if no periods are available.

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n
\n

Descriptionlink

\n

There is a rule for each defined day period. The\nfirst rule is applied to the first day period and so on.\nFall back to AM/PM when no rules are available.

\n

A rule can specify a period as time range, or as a single time value.

\n

This functionality is only available when you have loaded the full locale data.\nSee the \"I18n guide\".

\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }