AAllMyToolsa pocketful of little tools
CRON

Cron explainer

DevNo. 17 / 93

Paste a cron expression and read what it does in plain English, with the next five times it will run. Five fields, no guesswork.

`*/15 9-17 * * 1-5` is a sentence. it just looks like punctuation.

work surface

Math, not advice — results are indicative.Read the disclaimer.

most-used utilities

A backup schedule

Check that `0 3 * * *` means 03:00 and not 03:00 on a specific day.

A weekday-only job

Confirm that `1-5` is Monday to Friday and that the weekend is excluded.

A quarterly report

Verify `0 6 1 1,4,7,10 *` before it runs for the first time in January.

pro tips

If the next run is months away, check the month field before the day: a stray 2 turns a daily job into a February job.

Servers often run in UTC. A job written for 09:00 local will fire at 08:00 or 10:00 depending on the season.

Test with a near-future minute before trusting the schedule. `*/1 * * * *` should fire every minute; if it does not, the expression is not the problem.

what it does

A cron expression is five fields separated by spaces: minute, hour, day of month, month and day of week. Paste one and the tool describes it in a sentence, then lists the next five times it will actually fire.

The fields accept numbers (5), ranges (1-5), lists (1,3,5), steps (*/15) and any combination of them. Sunday is 0, and 7 is accepted as a second way to say Sunday — one of the many small disagreements between cron implementations.

The day rule is the one that surprises people: when both day-of-month and day-of-week are restricted, classic cron runs the job if **either** matches, not both. `0 0 1 * 1` means "the first of the month, and every Monday", not "the first Monday".

The next-run list is computed from your machine's clock, in your time zone. It is the fastest way to catch a mistake: an expression that looks reasonable and fires at 03:00 when you meant 15:00 shows up immediately.

quick answers

Does this run the job?

No. It only reads the expression and calculates the next runs in your browser. Nothing is scheduled and nothing is sent anywhere.

What do the five fields mean?

Minute (0–59), hour (0–23), day of month (1–31), month (1–12) and day of week (0–6, Sunday is 0). Some systems add a sixth field for seconds; this tool reads the classic five.

Why does Sunday appear as both 0 and 7?

Because cron implementations disagree. Both are accepted here and both mean Sunday; if your scheduler only accepts one, use 0.

Why is the next run not what I expected?

Check the day rule first: with both day fields restricted, cron uses OR. Then check your server's time zone, which is often UTC rather than local.