● Cron, in plain English

Say when.
We'll write the cron.

Describe a schedule the way you'd say it out loud. Get the expression, the exact run times in your time zone, and the syntax for whatever runs it.

Try

Departures

0

min

9

hour

*

day

*

month

1-5

weekday

At 09:00, on weekdays

000306091215182124

Calculating…

Timetable

Popular schedules

Each bar is one day. Every orange tick is a run.

Field notes

From the blog

All articles

FAQ

Questions people ask about cron

01How do I make a cron job that runs every 5 minutes?

Use the step operator in the minute field: */5 * * * *. It fires at :00, :05, :10 and so on, 12 times an hour. To limit it to working hours, set the hour field too: */5 9-17 * * *.

02What's the cron expression for midnight?

0 0 * * *: minute 0 of hour 0, every day. Remember it's midnight in the server's time zone, which on most cloud machines is UTC.

03How do I run a job on weekdays only?

Put 1-5 (Monday to Friday) in the last field and pick a time, for example 0 9 * * 1-5 for 9:00 every weekday. Leaving the minute and hour as * would run it every minute of those days.

04What does * * * * * mean?

Every minute, of every hour, of every day. Each * means "any value" for its field (minute, hour, day of month, month, day of week). It's useful for testing, but rarely what you want in production.

05Why does my job run on days I didn't expect?

If you set both the day-of-month and day-of-week fields, cron runs when either matches. 0 9 1 * 1 runs on the 1st of the month and every Monday. The decoder warns you about this.

06How do I check an expression before I deploy it?

Paste it into the decoder. It validates the syntax, explains it in plain English, and lists the next run times in whatever time zone your server uses.