Every 5 minutes
Linux: */5 * * * *
Quartz: 0 */5 * * * ?
Field map for Linux vs Quartz, special characters, common examples, and gotchas — open any example in the editor.
Everything on this page runs in your browser — nothing is uploaded unless noted.
| Field | Linux | Quartz | Range | Notes |
|---|---|---|---|---|
| Second | — | 1 | 0–59 | Quartz only |
| Minute | 1 | 2 | 0–59 | |
| Hour | 2 | 3 | 0–23 | 24-hour |
| Day of month | 3 | 4 | 1–31 | Quartz often uses ? with weekday |
| Month | 4 | 5 | 1–12 / JAN–DEC | |
| Day of week | 5 | 6 | 0–7 / SUN–SAT | 0 and 7 often both Sunday |
| Year | — | 7 (opt) | 1970–2099 | Optional Quartz field |
| Token | Meaning | Example | |
|---|---|---|---|
| * | Any value | * * * * * | |
| , | List of values | 0 9,18 * * * | |
| - | Inclusive range | 0 9-17 * * * | |
| / | Step / interval | */15 * * * * | |
| ? | No specific value (Quartz DOM/DOW) | 0 0 12 ? * MON | |
| L | Last day / weekday (Quartz) | 0 0 0 L * ? | |
| W | Nearest weekday (Quartz) | 0 0 0 15W * ? | |
| # | Nth weekday of month (Quartz) | 0 0 9 ? * 2#1 |
Linux: */5 * * * *
Quartz: 0 */5 * * * ?
Linux: 0 * * * *
Quartz: 0 0 * * * ?
Linux: 30 2 * * *
Quartz: 0 30 2 * * ?
Linux: 0 9 * * 1-5
Quartz: 0 0 9 ? * MON-FRI
Linux: 0 0 1 * *
Quartz: 0 0 0 1 * ?
Linux: 0 12 * * 0
Quartz: 0 0 12 ? * SUN
No. Quartz adds seconds (and optional year) and uses ? / L / W / #. Convert carefully when moving between dialects.
Many engines treat both as OR. Quartz typically expects ? on one of the two fields.