Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/triggers / cron / nextFireAfter

Function: nextFireAfter()

ts
function nextFireAfter(parsed, from): Date | null;

Defined in: packages/triggers/src/cron.ts:179

Compute the next fire time strictly after from for the supplied cron schedule. Returns a UTC Date (the scheduler treats every trigger as UTC; operators that need local time express that in their cron expression).

Returns null if no fire happens in the next 4 years (defensive — impossible for a well-formed cron expression except a vacuous combination that never aligns).

Parameters

ParameterType
parsedParsedCron
fromDate

Returns

Date | null

Stable