(type: string)
| 245 | try { |
| 246 | const parts = fmt.formatToParts(date) |
| 247 | const get = (type: string) => parseInt(parts.find((p) => p.type === type)?.value ?? '0', 10) |
| 248 | const weekdayStr = parts.find((p) => p.type === 'weekday')?.value ?? 'Sun' |
| 249 | minute = get('minute') |
| 250 | hour = get('hour') % 24 |
no outgoing calls
no test coverage detected