getNextCronDate
Defined in: packages/core/src/shared/utils/cron.ts:28
Parse a cron expression and return the next scheduled run date.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
expression | string | A 5-field cron expression (minute hour day-of-month month day-of-week) or a predefined expression |
currentDate? | Date | The reference date for calculating next run (default: now) |
Returns
Section titled “Returns”Date
The next scheduled run date
Throws
Section titled “Throws”If the cron expression is invalid