Crontab Expression Parser

Parse a cron expression and list its next five runs. Standard 5-field, second-precision 6-field and common aliases are supported, with a selectable time zone.

Examples

Hour and day fields are resolved in this zone

Runs every 5 minutes

Field reference

FieldValuesNotes
sec0-596-field form with seconds — only some cron implementations support it
min0-59Supports asterisk, comma, hyphen and step values
hour0-23Supports asterisk, comma, hyphen and step values
day1-31Supports asterisk, comma, hyphen and step values; most support L (last day)
month1-12Supports asterisk, comma, hyphen and step values
weekday0-6 (0 is Sunday)Supports asterisk, comma, hyphen and step values; most support # (nth weekday)

The 5-field order is "min hour day month weekday"; the 6-field form prepends a seconds field.

Comments

Sign in to join the discussion

No comments yet — be the first to say something