How to read a cron expression
- A cron expression has five fields: minute, hour, day of the month, month and weekday. A * means every value.
- You can use lists (1,3), ranges (1-5) and steps (*/5, 1-10/2), and names of months and weekdays such as jan or mon.
- If day of the month and weekday are both set, the job runs when either matches, as cron itself does.
Example: 0 9 * * 1-5
0 9 * * 1-5 runs at 09:00 from Monday to Friday. */15 9-17 * * * runs every quarter of an hour between 09:00 and 17:45.
In ZakMachine: Cron generator
Choose hourly, daily, weekly, monthly or a custom expression. You see the expression and the next run times, in your device’s time zone. A server runs cron in its own time zone. A schedule that never runs, such as 30 February, is reported.
Frequently asked questions
Which time zone does the tool use for the run times?
Your device’s. A server usually runs cron in its own time zone, often UTC; keep that in mind when you install the schedule there.
Is this tool part of ZakMachine Pro?
Cron generator is part of ZakMachine Pro: a one-time purchase, no subscription. Pro works on all your devices and can be shared with Family Sharing. Besides that, 10 tools are free.
ZakMachine for iPhone, iPad and Mac
Download ZakMachine for free on the App Store and unlock Pro with a one-time purchase.