(locale: string)
| 661 | * Let `Intl.DateTimeFormat` determine the day period instead. |
| 662 | */ |
| 663 | export function getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[] { |
| 664 | const data = ɵfindLocaleData(locale); |
| 665 | checkFullData(data); |
| 666 | const rules = data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodsRules] || []; |
| 667 | return rules.map((rule: string | [string, string]) => { |
| 668 | if (typeof rule === 'string') { |
| 669 | return extractTime(rule); |
| 670 | } |
| 671 | return [extractTime(rule[0]), extractTime(rule[1])]; |
| 672 | }); |
| 673 | } |
| 674 | |
| 675 | /** |
| 676 | * Retrieves locale-specific day periods, which indicate roughly how a day is broken up |
no test coverage detected