Reference
Cron Cheat Sheet
The five fields, special characters, shortcuts, common patterns, and a dialect comparison — everything on one page. Bookmark it or print it.
Anatomy of a cron expression
* * * * *
│ │ │ │ │
│ │ │ │ └── day of week (0–6, Sun=0)
│ │ │ └──── month (1–12)
│ │ └────── day of month (1–31)
│ └──────── hour (0–23)
└────────── minute (0–59) The five fields
| Field | Range | Example | Meaning |
|---|---|---|---|
| Minute | 0–59 | 30 | At minute 30 |
| Hour | 0–23 | 14 | At 2 PM (24-hour clock) |
| Day of month | 1–31 | 1 | On the 1st |
| Month | 1–12 or JAN–DEC | 3 | In March |
| Day of week | 0–6 or SUN–SAT | 1 | On Monday (Sun=0) |
Special characters
| Char | Name | Meaning |
|---|---|---|
| * | Any value | Every valid value for the field |
| , | List | 1,15 → the 1st and the 15th |
| - | Range | 1-5 → Monday through Friday |
| / | Step | */15 → every 15th value, starting from 0 |
| ? | No specific value | Quartz / EventBridge placeholder for an unused day field |
| L | Last | Last day of month / week (Quartz, EventBridge, Spring) |
| W | Nearest weekday | 15W → nearest weekday to the 15th (Quartz, EventBridge) |
| # | Nth weekday | MON#1 → first Monday of the month (Quartz, EventBridge) |
Shortcuts
| Shortcut | Equivalent | Note |
|---|---|---|
| @yearly | 0 0 1 1 * | Also @annually |
| @monthly | 0 0 1 * * | |
| @weekly | 0 0 * * 0 | Sunday at midnight |
| @daily | 0 0 * * * | Also @midnight |
| @hourly | 0 * * * * | |
| @reboot | — | Once at startup (Linux crontab only) |
Supported by Linux crontab. Kubernetes accepts the macros but not @reboot. GitHub Actions, AWS EventBridge, and Quartz don't support shortcuts.
Common patterns
Seconds
Minutes
Hours
Daily
Weekly
Dialect comparison
| Dialect | Fields | Seconds | Year | Sunday |
|---|---|---|---|---|
| Unix cron | 5 | — | — | 0 |
| Quartz Scheduler | 7 | Yes | Yes | 1 |
| Kubernetes CronJob | 5 | — | — | 0 |
| AWS EventBridge | 6 | — | Yes | 1 |
| Spring @Scheduled | 6 | Yes | — | 0 |
| GitHub Actions | 5 | — | — | 0 |
Day-of-week: Unix-family dialects number Sunday as 0; Quartz and AWS EventBridge use 1. Prefer name forms (MON, SUN) to avoid off-by-one bugs when porting.
Need to check a specific expression? Try the parser, the validator, or the converter.