How to use it
- Type or paste the five fields of a crontab line (the command after them is not needed), or choose an example.
- Read the sentence and the table: what each field means.
- Choose the time zone of the computer that runs cron to see its next 10 runs.
- Change any field below to build your own expression; the whole line updates.
Rules and limits
How the expression is read
- Five fields as Vixie cron reads them (also cronie and Debian’s cron): minute 0–59, hour 0–23, day of month 1–31, month 1–12 or jan–dec, day of week 0–7 or sun–sat, where 0 and 7 are Sunday. Each field is a list of *, a number, a range a-b, */step or a-b/step; a step after a single number is refused, as Vixie cron refuses it.
- Macros: @yearly and @annually (0 0 1 1 *), @monthly (0 0 1 * *), @weekly (0 0 * * 0), @daily and @midnight (0 0 * * *), @hourly (0 * * * *), and @reboot, which has no time.
- Day of month and day of week: when neither field starts with *, a day matches if either matches; when one of them starts with * (also */2), both must match.
- Next runs: every minute whose wall-clock time in the chosen zone matches, using the browser’s time-zone data, for up to 30 years ahead. Checked against a separate minute-by-minute program in Python with the IANA zone data, in six zones (with 1-hour and 30-minute DST changes and a :45 offset) and from starts on DST change days.
- Clock changes: a time that is skipped has no run here and a repeated time has two; the cron daemon itself, by its manual, runs fixed-time jobs from a skipped hour soon after the change and does not re-run them in a repeated hour of less than 3 hours.
Questions and answers
Why does “0 0 13 * 5” run on every Friday?
When both day fields are restricted, cron runs when either matches: on the 13th of each month and on every Friday. To run only on Friday the 13th, run on the 13th and check the weekday in the command.
Which time zone does cron use?
The time zone of the computer or container where cron runs, often UTC on servers. Choose that zone here; the times then match the server’s clock.
Can I use seconds or years?
Not in standard cron: it has five fields and checks once a minute. Six- or seven-field expressions belong to other schedulers (for example Quartz or Spring), whose rules differ; this page does not read them.
Is anything sent to a server?
No. The expression is read and the times are worked out in your browser; the page sends nothing.