A standard cron expression has 5 space-separated fields. Some platforms (AWS EventBridge, Spring, Quartz) extend this to 6 fields by adding a seconds field at the start.
| Field | Range | Special chars | Example |
|---|---|---|---|
| Minute | 0–59 | * , - / | 30 = at :30 |
| Hour | 0–23 | * , - / | 9 = 9am |
| Day of month | 1–31 | * , - / ? | 1 = 1st of month |
| Month | 1–12 or JAN–DEC | * , - / | 3 = March |
| Day of week | 0–7 or SUN–SAT (0=7=Sunday) | * , - / | 1-5 = weekdays |
| Char | Meaning | Example |
|---|---|---|
* | Every value in the field | * * * * * — every minute |
, | List of values | 1,15,30 — at minutes 1, 15, and 30 |
- | Range of values | 1-5 — Monday through Friday |
/ | Step values | */15 — every 15 units |
| Expression | Meaning |
|---|---|
* * * * * | Every minute |
0 * * * * | Every hour at :00 |
0 0 * * * | Daily at midnight |
0 9 * * 1-5 | 9am on weekdays |
0 0 1 * * | First day of every month at midnight |
*/15 * * * * | Every 15 minutes |
0 0 * * 0 | Every Sunday at midnight |
0 8-18 * * 1-5 | Every hour between 8am–6pm on weekdays |
0 0 1 1 * | Once a year — January 1st at midnight |
? to indicate "no specific value" for day-of-month or day-of-week (only one can be active at a time).timeZone field.