Xerobit

Cron Expression Examples

Ten common cron schedules. Each page gives the five-field expression, its next five run times from a fixed reference date, and one problem specific to that schedule, computed rather than described.

Common cron schedules

How a cron expression is read

FieldAllowed values
Minute0 to 59
Hour0 to 23
Day of month1 to 31
Month1 to 12
Day of week0 to 7 (0 and 7 are Sunday)

An asterisk means every value, */5 means every fifth value counted from the start of that field, 1-5 is a range and 1,15 is a list.

Day of month and day of week combine with OR

When both day fields are restricted, a job runs when either matches. crontab(5): "the command will be run when either field matches the current time", with the example 30 4 1,15 * 5 meaning 04:30 on the 1st and 15th and on every Friday. The next runs of that example from 2026-11-01 are 2026-11-01 (Sun), 2026-11-06 (Fri), 2026-11-13 (Fri), 2026-11-15 (Sun), 2026-11-20 (Fri), 2026-11-27 (Fri). The two Sundays appear because they are the 1st and the 15th, and the other four are Fridays: the union of both rules. Standard cron has no "and" form.

Sources, retrieved 2026-11-05: crontab(5) man page.

Build your own

For a schedule that is not listed, use the cron builder. For syntax differences between platforms read the cron expression guide.