nextCronFireAt
function nextCronFireAt( expression: CronExpression, from: Date, timezone?: "local" | "utc"): Date | undefined;Defined in: src/mft/cron.ts:79
Computes the next time at which a cron expression fires strictly after from.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
expression | CronExpression | undefined | Compiled cron expression. |
from | Date | undefined | Reference time. |
timezone | "local" | "utc" | "utc" | Either "utc" or "local". Defaults to "utc". |
Returns
Section titled “Returns”Date | undefined
The next fire time, or undefined when no fire occurs within five years.