Skip to content

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.

ParameterTypeDefault valueDescription
expressionCronExpressionundefinedCompiled cron expression.
fromDateundefinedReference time.
timezone"local" | "utc""utc"Either "utc" or "local". Defaults to "utc".

Date | undefined

The next fire time, or undefined when no fire occurs within five years.