Cron Expression: Business Hours
The expression is 0 9-17 * * 1-5. Paste it above to read it in English and preview the next local run times.
The expression
0 9-17 * * 1-5 runs a job on the hour, from 9am to 5pm, Monday through Friday.
Field by field
The 0 minute pins each run to :00. 9-17 is an hour range (inclusive, so 9,10,…,17 — nine runs). 1-5 is the weekday range Monday–Friday.
Ranges vs steps
Add a step to thin a range: 0 9-17/2 * * 1-5 fires every 2 hours within the window (9,11,13,15,17).
Common variations
Every 15 minutes during business hours: */15 9-17 * * 1-5. Stop at 5pm sharp (no 5pm run): use 9-16.
FAQ
Does 9-17 include 5pm?
Yes, ranges are inclusive, so it fires at 17:00. Use 9-16 if you want the last run at 4pm.
How do I run every 15 minutes during business hours?
Use */15 9-17 * * 1-5.
How do I run every 2 hours within the window?
Add a step: 0 9-17/2 * * 1-5.