Cron Expression Explainer
Explain any cron expression in plain English and see the next 10 runs in your time zone. Unix, Quartz, Spring, AWS, GitHub Actions and Kubernetes. Free, no ads.
| Field | Value | Means | Allowed |
|---|
Written for the dialect picked above.
How to use Cron Expression Explainer
- Paste or type your cron expression. The dialect is detected from its shape (5 fields is Unix, a cron(...) wrapper is AWS, 6 or 7 with seconds is Quartz); pick another from the list if it guessed wrong.
- Read the sentence under the box and the field table. Click into a field, and its row lights up with the values it allows and what your value means.
- Check the next runs. They are listed in your own time zone; change the zone the schedule runs in (the server, spec.timeZone or UTC) and the zone you want to read them in, and runs across a daylight saving change are marked.
- Use the builder to write a schedule from a form, or convert the expression to another dialect. Where the other dialect cannot say the same thing, you get a warning or a reason instead of a wrong answer.
- Press Copy link to share the expression, dialect and zones.
Cron cheat sheet by dialect
Every dialect shares the same core: * is any value, , separates a list,
- is a range and /n takes every nth value. They differ in the number of fields,
how Sunday is numbered, the special characters they accept and the time zone they run in.
Unix (Vixie cron)
minute hour day-of-month month day-of-week
* , - / | any, list, range, step: */5 or 1-30/5 |
|---|---|
0-7, SUN-SAT | Sunday is 0 or 7 |
@reboot @hourly @daily @weekly @monthly @yearly | shortcuts |
Day fields | both set: runs when either matches |
Quartz
second minute hour day-of-month month day-of-week [year]
? | no specific value; one day field must be ? |
|---|---|
1-7, SUN-SAT | Sunday is 1 |
L, L-3, LW, 15W | last day, 3 before last, last weekday, weekday nearest the 15th |
6L, 6#3 | last Friday, third Friday |
5/15 | from 5, every 15 |
Spring @Scheduled
second minute hour day-of-month month day-of-week
0-7, SUN-SAT | Sunday is 0 or 7 |
|---|---|
L, W, #, ? | as in Quartz |
@hourly @daily @weekly | macros (Spring 5.3+) |
Day fields | both set: both must match |
AWS EventBridge
cron(minute hour day-of-month month day-of-week year)
? | required in one day field |
|---|---|
1-7, SUN-SAT | Sunday is 1 |
L, W, # | last, nearest weekday, nth weekday |
Year | 1970-2199, usually * |
Zone | rules run in UTC; EventBridge Scheduler accepts a time zone |
GitHub Actions
on.schedule[].cron: minute hour day-of-month month day-of-week
0-6, SUN-SAT | Sunday is 0 |
|---|---|
UTC | always; no time zone setting |
5 minutes | the shortest interval; runs can start late |
No @ shortcuts | write the five fields |
Kubernetes CronJob
spec.schedule: minute hour day-of-month month day-of-week
spec.timeZone | an IANA zone such as Europe/Berlin (stable since 1.27) |
|---|---|
0-6, SUN-SAT | Sunday is 0; ? means * |
@hourly @daily @weekly @monthly @yearly | shortcuts |
CRON_TZ= | not allowed inside the schedule; use spec.timeZone |
Questions
Why does Quartz reject my Unix cron expression?
Quartz expects a seconds field first, numbers Sunday as 1 instead of 0, and needs ? in either day-of-month or day-of-week. So 0 9 * * 1-5 in Unix becomes 0 0 9 ? * MON-FRI in Quartz. The converter does this for you.
What time zone do GitHub Actions schedules use?
UTC, always. A schedule of 0 9 * * * runs at 09:00 UTC, which is 04:00 in New York in winter and 05:00 in summer. The next-runs list shows both the UTC time and your local time. GitHub also runs schedules at most every 5 minutes and can start them late when it is busy.
How do I set a time zone for a Kubernetes CronJob?
Set spec.timeZone to an IANA name such as Europe/Berlin (stable since Kubernetes 1.27). Without it the schedule runs in the zone of the kube-controller-manager, which is usually UTC. Writing CRON_TZ= inside spec.schedule is rejected.
Why does 0 0 1 * 1 run every Monday, not only on Mondays that are the 1st?
In Unix cron, when both day-of-month and day-of-week are restricted, a day that matches either one fires. So it runs on the 1st of every month and on every Monday. Quartz and AWS avoid the ambiguity by requiring ? in one of the two fields; Spring requires both to match.
What does AWS EventBridge cron(0 12 * * ? *) mean?
Every day at 12:00 UTC. AWS cron has six fields: minute, hour, day-of-month, month, day-of-week and year, wrapped in cron(...). One day field must be ?. EventBridge rules run in UTC; EventBridge Scheduler lets you pick a time zone.
What happens to a 02:30 job when the clocks change?
On the night the clocks go forward, 02:30 does not exist, and on the night they go back, 01:30 happens twice. The next-runs list computes each run in the schedule's own zone and marks both cases, so you can see whether a job will be skipped or run twice.
What do L, W and # mean?
They are Quartz and AWS extensions. L in day-of-month is the last day; 15W is the weekday nearest the 15th; LW is the last weekday. In day-of-week, 6L is the last Friday (Quartz numbers Friday as 6) and 6#3 is the third Friday of the month.
Is it free, and is my expression sent anywhere?
It is free with no ads, no account and no paid tier. Everything runs in your browser. Share links keep the expression after the # in the URL, which browsers never send to a server.