Skip to content

How often does your cron expression run?

Read a cron expression in plain words and see its next run times in your time zone.

Five fields: minute, hour, day of month, month, day of week. Or @daily, @hourly and so on.

Example expressions

More options

In plain words

Next run times

Field by field

Minute
at minute 0
Hour
at hour 9
Day of month
every day of the month
Month
every month
Day of week
on Monday to Friday

Read a cron expression in plain words and see its next run times in your time zone.

How to use

  1. Type or paste a cron expression.
  2. Read the plain-words description and the meaning of each field.
  3. Press an example if you like, choose a time zone and how many runs to list, and read when the job runs next.

How it works

Cron runs a command on a schedule written in five fields: minute, hour, day of the month, month and day of the week. A star means every value, a comma lists values, a dash gives a range and a slash a step. So 0 9 * * 1-5 means minute 0 of hour 9 on Monday to Friday, and */15 means every 15 minutes within its field.

The two day fields interact in a way that surprises people. If both are restricted, a day runs when either matches (POSIX crontab): 30 4 1,15 * 5 runs at 04:30 on the 1st and the 15th and also on every Friday. If one is a star, both must match, which is how every other combination behaves. Sunday is 0, and many cron programs also accept 7 and the names mon, tue and so on.

Cron compares the schedule with the wall clock, so the next runs depend on the time zone. A time that does not exist when clocks jump forward is skipped here, and a time that happens twice is listed once. Your cron program may differ in such hours, and some systems, such as Quartz, use six or seven fields, which this tool does not read.

Worked example

What does 0 9 * * 1-5 mean?

  1. Minute: 0, so on the hour.
  2. Hour: 9, so at 9 in the morning.
  3. Day of month and month: both stars, so any day of any month.
  4. Day of week: 1-5, Monday to Friday.

It runs at 09:00 on Monday to Friday, in the time zone of the machine that runs cron.

Frequently asked questions

What does */5 * * * * mean?

Every five minutes, on the hour and at 5, 10, 15 and so on, around the clock.

How do I run a job at midnight?

Use 0 0 * * *, or the macro @daily. The time zone of the server decides which midnight it is.

Why does my job run on days I did not expect?

When both day of month and day of week are set, either one matching is enough. Use a star in one of them to require the other.

Is Sunday 0 or 7?

Both work in most cron programs, and the tool reads either. POSIX defines 0 to 6 with Sunday as 0.

Does this support seconds or a year field?

No. It reads the standard five-field format. Quartz and some cloud schedulers add seconds or a year and are not covered.

Send feedback