Cron Decoder Explain any cron expression

Paste a schedule to see what it means, when it runs next, and what to watch out for. Works with Linux cron, Kubernetes, GitHub Actions, Quartz, AWS EventBridge and Azure Functions.

Next runs

Advertisement

Field by field

Watch out for

Use it


  

  
  
Advertisement

Cron formats compared

FormatFieldsSecondsDay of weekExtrasTime zone
Linux cron5No0–7, Sunday is 0 or 7@daily, @hourly and similarServer time, or CRON_TZ= on some systems
Kubernetes5No0–7, Sunday is 0 or 7@daily, @hourly and similarspec.timeZone, otherwise the controller’s (usually UTC)
GitHub Actions5No0–6, Sunday is 0NoneUTC
Quartz6 or 7 (seconds first, optional year)Yes1–7, Sunday is 1? L W #Set per trigger
AWS EventBridge6 (year last)No1–7, Sunday is 1? L W #UTC for rules; Scheduler lets you choose
Azure Functions6 (seconds first)Yes0–6, Sunday is 0NoneUTC, or WEBSITE_TIME_ZONE

Common questions

Why does my AWS cron run on Sunday?

AWS and Quartz number the days 1–7 starting with Sunday, so 1-5 means Sunday through Thursday. Use MON-FRI or 2-6 for weekdays.

Why does 0 9 1 * 1 run every Monday?

In standard cron, when both day of month and day of week are set, the job runs on days that match either one. This runs on the 1st of every month and also on every Monday. To get “the 1st, only if it’s a Monday,” run daily on the 1st and check the weekday in your script.

How do I run a job every 30 seconds?

Linux cron can’t go below one minute. A common workaround is two lines: * * * * * job and * * * * * sleep 30; job. Quartz and Azure have a seconds field, so */30 * * * * ? (Quartz) or */30 * * * * * (Azure) works directly.

What does ? mean?

In Quartz and AWS, ? means “no specific value.” It goes in either the day-of-month or the day-of-week field, and exactly one of them must have it.

Why didn’t my GitHub Actions schedule run on time?

GitHub runs schedules in UTC, can delay them when busy (especially at the top of the hour), only runs them from the default branch, and turns them off in public repositories after 60 days without activity.

What happens during daylight saving changes?

A job set for a time that gets skipped when clocks spring forward may not run that day, and a job in the hour that repeats when clocks fall back may run twice. Scheduling in UTC avoids both.