Standard cron expressions use five fields. Each field narrows when the schedule can run.
| Field | Range | Examples |
|---|---|---|
| Minute | 0-59 | 0, */5, 15, 0-30 |
| Hour | 0-23 | 0, 9, 9-17, */2 |
| Day of month | 1-31 | 1, 15, 1-7, * |
| Month | 1-12 | 1, 6, 1-3, * |
| Day of week | 0-7 | 0 or 7 for Sunday, 1 for Monday, 1-5 for weekdays |
Cron checks each field against the current time. When the minute, hour, month, and day rules match, the job can run. Day-of-month and day-of-week behavior can vary by scheduler, so production schedules should be checked against the system that will run them.
Use * for every value, */n for every n values, commas for lists, and dashes for ranges. For example, */5 in the minute field means every five minutes, and 1-5 in the weekday field usually means Monday through Friday.