0 9-17 * * 1-5 — what this cron expression means
The cron expression 0 9-17 * * 1-5 runs on the hour, 9 AM to 5 PM, Monday to Friday. Here is the field-by-field breakdown and what it means in plain English.
What 0 9-17 * * 1-5 means
It runs on the hour, 9 AM to 5 PM, Monday to Friday.
Field by field
minute=0, hour=9-17 (a range, 9 AM through 5 PM), day/month *, day-of-week=1-5 (Mon–Fri).
Fires at the top of every hour during business hours on weekdays: 09:00, 10:00 … 17:00 — nine runs per workday, none on weekends.
When it runs next
Next run: the next weekday top-of-hour between 09:00 and 17:00.
FAQ
What does 0 9-17 * * 1-5 mean?
It runs every hour on the hour from 9 AM to 5 PM, Monday through Friday only.
Does 9-17 include 5 PM?
Yes. A cron range is inclusive, so 9-17 covers 09:00 up to and including 17:00.