(minute: number, hour: number)
| 205 | } |
| 206 | |
| 207 | function formatUtcTimeAsLocal(minute: number, hour: number): string { |
| 208 | // Create a date in UTC and format in user's local timezone |
| 209 | const d = new Date() |
| 210 | d.setUTCHours(hour, minute, 0, 0) |
| 211 | return d.toLocaleTimeString('en-US', { |
| 212 | hour: 'numeric', |
| 213 | minute: '2-digit', |
| 214 | timeZoneName: 'short', |
| 215 | }) |
| 216 | } |
| 217 | |
| 218 | export function cronToHuman(cron: string, opts?: { utc?: boolean }): string { |
| 219 | const utc = opts?.utc ?? false |
nothing calls this directly
no outgoing calls
no test coverage detected