Skip to main content

Build a cron expression from plain options — no syntax to memorise.

Cron expression

0 2 * * *

Daily — 02:00

Understanding the five fields

A cron expression has five fields in a fixed order: minute, hour, day of month, month, and day of week. An asterisk means "every value", a number pins an exact value, and */N means "every N". So 30 2 * * 1 runs at 02:30 every Monday.

Two details catch people out. Day of week counts Sunday as 0 (and 7 in most implementations), so Monday is 1. And if you set both day of month and day of week, most cron daemons run the job when either matches, not both — so keep one of them as an asterisk unless you really want that behaviour.