How to use it
- Type a cron expression in the box, or press a button under Common schedules.
- Read What it means to check the schedule in plain English.
- Check the next 5 runs. They are in the time zone of your device.
- To make a new schedule, pick a pattern under Build an expression and set the values.
- Press Copy expression and paste it into your crontab or scheduler.
The five fields
A standard cron expression has five fields with a space between them.
| Field | Values |
|---|---|
| Minute | 0 to 59 |
| Hour | 0 to 23 |
| Day of month | 1 to 31 |
| Month | 1 to 12, or JAN to DEC |
| Day of week | 0 to 7, or SUN to SAT. Both 0 and 7 mean Sunday. |
The special characters
*means every value. A star in the hour field means every hour.,makes a list.1,15in the day field means day 1 and day 15.-makes a range.MON-FRImeans Monday through Friday./makes a step.*/15in the minute field means minutes 0, 15, 30 and 45.
Two traps to know
The first trap is the two day fields. When you set both the day of month and the day of week, cron runs when either one matches. 0 0 13 * FRI runs on every 13th and also on every Friday. It does not wait for a Friday the 13th.
The second trap is steps that do not divide evenly. */7 in the minute field runs at 0, 7, 14 and so on up to 56. Then it starts again at 0 in the next hour. The last gap is only 4 minutes.
Which time zone does cron use?
Cron uses the time zone of the server, not yours. Many servers run on UTC. This page shows run times in your local time, so allow for the difference when the server is in another zone.
What this page does not cover
Some schedulers add a seconds field or a year field. Quartz, Spring and AWS EventBridge do this. They also use extra characters such as ?, L and #. This page reads the standard five fields that Linux crontab, Kubernetes CronJobs and GitHub Actions use.
Questions
What does */5 * * * * mean?
It runs every 5 minutes, at minutes 0, 5, 10 and so on, in every hour of every day.
How do I run a job on weekdays only?
Put 1-5 or MON-FRI in the last field. For example, 0 9 * * 1-5 runs at 09:00 from Monday through Friday.
Can cron run a job every 90 minutes?
Not with one expression. A step starts again at each new hour or day. Use two lines: 0 0-21/3 * * * and 30 1-22/3 * * *.
Is Sunday 0 or 7?
Both. Standard cron accepts 0 and 7 for Sunday. Monday is 1 and Saturday is 6.