Cron syntax
┌───────── minute (0–59) │ ┌─────── hour (0–23) │ │ ┌───── day of month (1–31) │ │ │ ┌─── month (1–12 or JAN–DEC) │ │ │ │ ┌─ day of week (0–6, SUN–SAT; 7 = Sunday) │ │ │ │ │ * * * * * command
| Symbol | Meaning | Example |
|---|---|---|
* | Every value | * * * * * every minute |
, | List | 0 8,12,18 * * * |
- | Range | 0 9-17 * * * |
/ | Step | */15 * * * * |
@daily | Macro | same as 0 0 * * * |
Common schedules
| Expression | Runs |
|---|---|
*/5 * * * * | Every 5 minutes |
0 * * * * | Every hour on the hour |
0 9 * * 1-5 | Weekdays at 09:00 |
30 2 * * * | Daily at 02:30 |
0 0 1 * * | First day of every month |
0 0 * * 0 | Sundays at midnight |
15 14 1 * * | 14:15 on the 1st |
0 22 * * 1-5 | Weeknights at 22:00 |
0 0 1 1 * | Once a year, 1 January |
0 */6 * * * | Every 6 hours |
The day-of-month / day-of-week rule
If both day fields are restricted (neither is *), standard cron runs when either matches. 0 0 13 * 5 runs on every 13th and on every Friday, not only on Friday the 13th. This explainer follows that rule.
Times are computed in your browser's time zone. Servers usually run cron in their own zone (often UTC). Quartz and some cloud schedulers use a 6- or 7-field format with seconds, which this tool does not parse.