Cron expression

Cron every hour from 9am to 5pm

The cron expression 0 9-17 * * * runs at minute 0 of hours 9 through 17, every day. Below: what each field means, its next runs in your time zone, and how to get an alert if it stops.

toolsCron expression
0Minute
9-17Hour
*Day of month
*Month
*Day of week

At minute 0 of hours 9 through 17, every day.

What does 0 9-17 * * * mean?

At minute 0 of hours 9 through 17, every day.

FieldWrittenMeans
Minute00
Hour9-179 through 17
Day of month*every day of month
Month*every month
Day of week*every day of week

How often does it run?

On a day it runs, it runs 9 times. It runs on 365 days of 2027, 3,285 runs in all. The gap between runs is not constant: it varies from 1 hour to 16 hours.

Runs on a day it runs
9
Days it runs in 2027
365
Runs in 2027
3,285
Shortest gap
1 hour

When is this schedule useful?

Hourly work that only matters while people are around: chat digests, queue reports, or syncing a sales tool during the day.

What should you watch out for?

The range 9-17 includes 17:00, so the last run is at 5pm, not 4pm. It also runs on weekends; add 1-5 in the last field for weekdays only.

What happens when the clocks change?

On Sunday 14 March 2027, clocks in America/New_York jump from 02:00 to 03:00. No run falls in the missing hour, so the day runs as usual.

On Sunday 1 November 2026, clocks in America/New_York fall back from 02:00 to 01:00, so the hour from 01:00 happens twice. No run falls in the repeated hour, so the day runs as usual.

A server that keeps its clock on UTC never sees either change. The next run calculator previews any zone.

How do you write it for other schedulers?

SchedulerExpressionNotes
Kubernetes CronJob0 9-17 * * * Exact
GitHub Actions0 9-17 * * * Exact
Vercel Cron0 9-17 * * *Vercel runs cron jobs in UTC; write the hours in UTC.
Quartz0 0 9-17 * * ? Exact
Spring @Scheduled0 0 9-17 * * * Exact
AWS EventBridgecron(0 9-17 * * ? *) Exact
systemd OnCalendar*-*-* 09..17:00:00 Exact

How do you get an alert when it stops running?

Create a cron check with the schedule 0 9-17 * * * and 5 minutes of grace, then ping it at the end of the job. If a run does not report in by the end of the grace time, CronMissed sends an alert.

crontab -e
0 9-17 * * * /usr/local/bin/job.sh && curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10"

The snippet builder writes the same ping for systemd, GitHub Actions, Vercel, Kubernetes and backup scripts.

Questions and answers

What does 0 9-17 * * * mean in cron?
At minute 0 of hours 9 through 17, every day.
How often does 0 9-17 * * * run?
On a day it runs, it runs 9 times. It runs on 365 days of 2027, 3,285 runs in all. The gap between runs is not constant: it varies from 1 hour to 16 hours.
How do I get an alert when this job stops running?
Create a cron check with the schedule 0 9-17 * * * and 5 minutes of grace, then add the ping to the end of the job so it requests the check URL after each successful run. If a run does not report in by the end of the grace time, CronMissed alerts you by email, Slack, Discord, Telegram, ntfy or webhook.

Know the first time this schedule misses a run

CronMissed expects a ping at every run of 0 9-17 * * *. When one is late or reports a failure, you get an alert by email, Slack, Discord, Telegram, ntfy or webhook.