(date: Date)
| 55 | } |
| 56 | |
| 57 | function formatTime(date: Date): string { |
| 58 | return `${pad2(date.getHours())}:${pad2(date.getMinutes())}` |
| 59 | } |
| 60 | |
| 61 | // Longest tokens must come first in the alternation so `MMMM` wins over `MM`, |
| 62 | // `MM` over `M`, etc. `[...]` escapes emit their contents literally. |
no test coverage detected