Skip to content

nextRun

nextRun(schedule, from): Date

Defined in: packages/format-cron/src/codec.ts:132

Finds the next minute (strictly after from, read/returned in local time) that matches schedule.

CronSchedule

Date

Date

If no match is found within MAX_NEXT_RUN_SEARCH_MINUTES (e.g. 31 for a dayOfMonth in February only).