parseCron()
Parse a standard five-field cron expression.
Import
Section titled “Import”import { parseCron } from "@graphrefly/ts/sources";Signature
Section titled “Signature”function parseCron(expr: string): CronScheduleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
expr | string | Cron expression in minute hour day month weekday order. |
Returns
Section titled “Returns”A normalized cron schedule with one set per field.
Example
Section titled “Example”parseCron("0,5 * * * *");Source
Section titled “Source”packages/ts/src/graph/sources.ts