Guide
How cron expressions work
By Logappradeep · ServiceNow developer
Cron is the time-based job scheduler that has shipped with Unix-like systems since the 1970s, and its five-field expression syntax has become the standard way to describe recurring schedules. Linux crontabs, Kubernetes CronJobs, GitHub Actions, CI systems, cloud schedulers and many job queues all accept cron expressions.
The five fields
A standard expression has five space-separated fields, read left to right:
┌ minute (0-59)
│ ┌ hour (0-23)
│ │ ┌ day of month (1-31)
│ │ │ ┌ month (1-12)
│ │ │ │ ┌ day of week (0-6, Sunday = 0)
* * * * *
Each field accepts a few special characters. * means every value, a comma lists values (1,15), a hyphen defines a range (1-5), and a slash defines a step (*/15 means every 15 units).
Examples
*/5 * * * *: every five minutes.0 9 * * 1-5: 09:00 every Monday through Friday.0 0 1 * *: midnight on the first day of every month.30 2 * * 0: 02:30 every Sunday.0 */6 * * *: on the hour every six hours (00:00, 06:00, 12:00, 18:00).
Type values into the five inputs and the builder assembles the expression, shows a plain-language description for common patterns, and lets you copy the result.
Pitfalls that trip people up
Day of month and day of week combine with OR. When both fields are restricted, standard cron runs the job when either matches. 0 0 13 * 5 does not mean "Friday the 13th"; it runs at midnight on every 13th of the month and on every Friday. To target Friday the 13th, schedule one field and check the other inside the job.
Steps reset at the boundary. */7 in the minute field fires at minutes 0, 7, 14 and so on up to 56, then again at 0 of the next hour, which is only four minutes later. Steps that do not divide evenly into 60 or 24 produce uneven gaps.
Time zones. Cron uses the time zone of the machine or service running it. Many cloud schedulers, including GitHub Actions, evaluate cron in UTC, so 0 9 * * * may fire at 09:00 UTC rather than 09:00 where you are.
Daylight saving time. In zones that observe DST, a job scheduled between 02:00 and 03:00 can be skipped on the spring-forward night or run twice when clocks fall back. Schedule critical jobs outside that window or run them in UTC.
Dialects differ. Quartz and Spring use six or seven fields with seconds first and a ? placeholder, AWS EventBridge has its own six-field format, and some systems accept 7 for Sunday or names like MON. Check which syntax your platform expects.
The builder runs in your browser, and your last expression is saved in local storage.