(schedule: string | Record<string, unknown>)
| 56 | } |
| 57 | |
| 58 | function getAtTime(schedule: string | Record<string, unknown>): Date | null { |
| 59 | if (typeof schedule === "object" && schedule && schedule.kind === "at") { |
| 60 | const at = schedule.at as string; |
| 61 | if (at) return new Date(at); |
| 62 | } |
| 63 | return null; |
| 64 | } |
| 65 | |
| 66 | function formatIntervalLabel(ms: number): string { |
| 67 | if (ms >= 86400000) return `Every ${Math.round(ms / 86400000)}d`; |
no outgoing calls
no test coverage detected