getLocaleExtraDayPeriodRules

function experimental

npm Package @angular/common
Module import { getLocaleExtraDayPeriodRules } from '@angular/common';
Source common/src/i18n/locale_data_api.ts

function getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[];

Description

Rules used to determine which day period to use (See dayPeriods below). The rules can either be an array or a single value. If it's an array, consider it as "from" and "to". If it's a single value then it means that the period is only valid at this exact value. There is always the same number of rules as the number of day periods, which means that the first rule is applied to the first day period and so on. You should fallback to AM/PM when there are no rules available.

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–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/common/getLocaleExtraDayPeriodRules