(date: Date)
| 51 | |
| 52 | /** ISO `YYYY-MM-DD` for the given date (local time). */ |
| 53 | export function formatISODate(date: Date): string { |
| 54 | return `${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())}` |
| 55 | } |
| 56 | |
| 57 | function formatTime(date: Date): string { |
| 58 | return `${pad2(date.getHours())}:${pad2(date.getMinutes())}` |
no test coverage detected