(locale: string)
| 638 | * Let `Intl.DateTimeFormat` determine the day period instead. |
| 639 | */ |
| 640 | export function getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[] { |
| 641 | const data = ɵfindLocaleData(locale); |
| 642 | checkFullData(data); |
| 643 | const rules = data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodsRules] || []; |
| 644 | return rules.map((rule: string | [string, string]) => { |
| 645 | if (typeof rule === 'string') { |
| 646 | return extractTime(rule); |
| 647 | } |
| 648 | return [extractTime(rule[0]), extractTime(rule[1])]; |
| 649 | }); |
| 650 | } |
| 651 | |
| 652 | /** |
| 653 | * Retrieves locale-specific day periods, which indicate roughly how a day is broken up |
no test coverage detected
searching dependent graphs…