(cron: Cron.Cron, lower: Date, upper: Date)
| 509 | ] as const |
| 510 | |
| 511 | const gatherForward = (cron: Cron.Cron, lower: Date, upper: Date) => { |
| 512 | const dates: Array<Date> = [] |
| 513 | let current = lower |
| 514 | while (true) { |
| 515 | current = Cron.next(cron, current) |
| 516 | if (current >= upper) { |
| 517 | return dates |
| 518 | } |
| 519 | dates.push(current) |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | const gatherReverse = (cron: Cron.Cron, lower: Date, upper: Date) => { |
| 524 | const dates: Array<Date> = [] |
no test coverage detected