Why Crontab Syntax Is Error-Prone
Standard Unix cron uses 5 fields (minute, hour, day-of-month, month, day-of-week). In contrast, Spring @Scheduled, Quartz, and enterprise schedulers expect 6 fields including a leading seconds parameter. Confusing these schemas or misunderstanding weekday numbers frequently causes missed jobs or cascading server overloads.
Linux 5-Field vs Spring 6-Field
- Linux Crontab:
* * * * *(minute 0-59, hour 0-23, day 1-31, month 1-12, weekday 0-7) - Spring:
0 * * * * *(second 0-59, minute 0-59, hour 0-23, day 1-31, month 1-12, weekday 0-7)
Common Cron Wildcards
*:Matches every possible value in that field.*/X:Step intervals.*/15in the minute field means every 15 minutes.,:Comma-separated lists of specific values (e.g.1,3,5).-:Hyphen-separated continuous ranges (e.g.9-17).
Under the hood
updateCron() reads the five field values and renders the expression, then computeNextExecutions() projects forward minute by minute, calling matches() for each candidate time until it has collected the requested number of hits. matches() handles the wildcard, the step form, ranges and lists per field. Showing the next real dates is the point: an expression that looks plausible often fires at a time you did not intend.
Formats, sizes and other limits
Projection walks forward in one-minute steps, so a sparse schedule (once a year) takes longer to resolve and the page does one pass rather than a smart search. Only the standard five fields are offered — no seconds, no @daily macros, no L, W or # extensions. Day-of-month and day-of-week are combined with OR, per the classic cron rule, which is the single most misunderstood part of the syntax. Times are interpreted in your browser's timezone, not the server's.
Privacy: nothing is uploaded
Schedule projection runs on your local clock in this tab. No crontab is read, no server is contacted, and the expression is not saved.
Frequently asked questions
Why do my next-run times look wrong?
Almost always a timezone mismatch: the page uses your local clock, while the server may run on UTC. Shift the hour field accordingly.
Does it support @daily or seconds?
No. Write 0 0 * * * for daily, and note that six-field expressions with seconds are a different dialect.
Why does my job run on unexpected days?
Because day-of-month and day-of-week are OR-ed, not AND-ed: specifying both means either can trigger the job.