Turns an expression like 0 9 * * 1-5 into a sentence,
and gives you the next run times plus
how many times a year it fires and how short the gaps get.
The classic traps — such as writing both day-of-month and day-of-week meaning
OR, not AND — are pointed out automatically
whenever they apply.
| As written | Field | Values it matches | Count |
|---|
* (all) , (list)
- (range) / (step).
*/15, 1-5, 0,30, 9-17/2 and
5/10 (from 5 to the end, every 10) all work.JAN–DEC, weekdays are
SUN–SAT. Case does not matter, and ranges such as
MON-FRI are fine.0-7 therefore
means the same as every day of the week.@yearly @annually
@monthly @weekly @daily @midnight
@hourly are supported. @reboot has no clock time, so it cannot
be handled.L (last day, last weekday) W (nearest
weekday) and # (nth weekday) are Quartz-style extensions and do not work in
standard cron. If they appear, this page reports an error saying so. ? is
treated as the same thing as *.*, standard cron runs if either one matches (OR). When only one of
them is narrowed, only that one is consulted. This page follows the same rule.*/n counts from the minimum of that
field — 0 for minutes. Written as 5/10, the start is 5.Asia/Tokyo
never runs into this.croniter over randomly generated expressions. The script lives with the
source.