The Five Fields of a Cron Expression
Special Characters: * / , -
Common Patterns to Copy
Timezone Pitfalls
Frequently Asked Questions
How many fields does a cron expression have?
Standard cron uses five fields: minute, hour, day of month, month, and day of week. Some schedulers add an optional seconds field at the front or a year field at the end, giving six or seven fields.
What does */5 mean in cron?
The slash defines a step value. In the minute field, */5 means "every 5 minutes" — it fires at minute 0, 5, 10, and so on through the hour. The same step syntax works in any field.
Why does my job run at the wrong time?
Almost always a timezone mismatch. Traditional cron uses the server's local time, not yours, and daylight saving transitions can skip or repeat an hour. Confirm the host timezone and avoid scheduling between 1am and 3am.
Does specifying both day-of-month and day-of-week mean AND?
No. Traditional cron treats them as OR when both are set, so the job runs on either matching day. To target a single day, set one field and leave the other as an asterisk.