Skip to content

Function: isValidCronExpression()

ts
function isValidCronExpression(expression): boolean;

Defined in: packages/scheduler/src/interfaces/cron.interface.ts:102

Validates if a string is a valid cron expression Supports 5-segment (minute hour day month day-of-week) and 6-segment (second minute hour day month day-of-week) formats

Parameters

ParameterType
expressionstring

Returns

boolean

Released under the MIT License.