Skip to main content

Module cron

Module cron 

Source

Structs§

Cron
a parsed cron expression
CronError
a parse error: the field (0 minute .. 4 day of week, 5 = the whole expression) and why

Functions§

classify
the (kind, hour, minute, weekday mask, day of month) of an expression built by the helpers above: kind 1 hourly, 2 daily, 3 weekly, 4 monthly, 0 anything else (custom)
daily
“M H * * *”
hourly
“M * * * *”
monthly
“M H D * *”
weekly
“M H * * days” with mask bit 0 = Monday .. bit 6 = Sunday (empty mask: every day)