cron

When does this cron actually run?

Paste a five-field cron expression and see the next ten runs in UTC and in any timezone — including the ones daylight saving moves.

minute hour day-of-month month day-of-week

Examples
# Local UTC In
[fields]

Five fields

minute (0–59), hour (0–23), day of month (1–31), month (1–12), day of week (0–7, Sunday is 0 or 7).

[syntax]

Steps, ranges, lists

* any, */15 every 15, 1-5 a range, 1,15 a list, JAN or MON names.

[gotcha]

Day fields are ORed

When both day-of-month and day-of-week are restricted, cron runs when either matches — not both.

timezones and cron

The same expression is a different moment

Cron itself has no timezone concept; it runs against whatever clock the daemon uses. A job scheduled for 0 9 * * * fires at 09:00 in the server's zone, which is 03:30 UTC in Kolkata and 14:00 UTC in Tokyo.

Pick the zone above to see both sides. During a spring-forward transition a job scheduled inside the skipped hour simply does not run that day — this helper omits those times instead of inventing one.

At an autumn fall-back the same wall time occurs twice. The next-run list shows the earlier occurrence; if your scheduler runs both, expect a duplicated job once a year.

advertisement