(day: number)
| 554 | } |
| 555 | |
| 556 | private ordinalIndicator(day: number): string { |
| 557 | return Match.value(day % 10).pipe( |
| 558 | Match.when(1, () => "st"), |
| 559 | Match.when(2, () => "nd"), |
| 560 | Match.when(3, () => "rd"), |
| 561 | Match.orElse(() => "th") |
| 562 | ) |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | class Month extends DatePart { |