(minute: number, hour: number)
| 198 | ] |
| 199 | |
| 200 | function formatLocalTime(minute: number, hour: number): string { |
| 201 | // January 1 — no DST gap anywhere. Using `new Date()` (today) would roll |
| 202 | // 2am→3am on the one spring-forward day per year. |
| 203 | const d = new Date(2000, 0, 1, hour, minute) |
| 204 | return d.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' }) |
| 205 | } |
| 206 | |
| 207 | function formatUtcTimeAsLocal(minute: number, hour: number): string { |
| 208 | // Create a date in UTC and format in user's local timezone |
nothing calls this directly
no outgoing calls
no test coverage detected