PromoHive Venture

Cron Schedule Explainer

Five fields: minute, hour, day of month, month, day of week. Shortcuts such as @daily work too.

Minute
30at minute 30
Hour
9at hour 9
Day of month
*every day
Month
*every month
Day of week
1-5Monday through Friday

At 09:30, Monday through Friday, server time (UTC)

Start from a preset
The job runs on
Next five runs
UTCDhaka (UTC+6)

0 2 * * * on a UTC server fires at 8 in the morning in Dhaka

02:00UTC, on the server
08:00Dhaka, in the middle of the working day

A backup job is set to 0 2 * * * on a server that runs on UTC, so it fires at 8 in the morning in Dhaka, in the middle of the working day.

Cron lines are short and easy to misread, and the mistake usually shows up as a slow site or a missed report. Seeing the schedule in words and in local time catches it before it runs.

What the fields accept

Values a cron field accepts, with an example of how each one reads back
WriteIt isExampleReads back as
*Every value in the field* in Minuteevery minute
1-5A range1-5 in Day of weekMonday through Friday
*/15A step*/15 in Minuteevery 15 minutes
1,15A list1,15 in Day of month1st and 15th
MON to SUNDay namesSAT,SUN in Day of weekSunday and Saturday
JAN to DECMonth namesJAN-MAR in MonthJanuary through March
@dailyA shortcut for the whole line. @hourly, @weekly, @monthly and @yearly work too@daily on its ownAt 00:00, every day
  1. Standard five-field cron. When both day of month and day of week are restricted, a run happens when either one matches.
  2. Values out of range, the wrong number of fields and unknown names are flagged with the field they are in.
  3. Runs in your browser. Nothing is saved or sent anywhere.

Who it is for

Developers and DevOps engineers

Check a schedule before it goes into a crontab, a CI job or a Kubernetes CronJob.

Teams running automations

Confirm when reports, syncs and backups really run in local time.