Cron Every Hour During Business Hours
Schedule a cron job every hour during business hours (9 AM-5 PM, Mon-Fri) with 0 9-17 * * 1-5. Full field breakdown and practical examples.
Cron Expression
0 9-17 * * 1-5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At 0 |
| Hour | 9-17 | From 9 to 17 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | 1-5 | From Monday to Friday |
Detailed Explanation
The cron expression 0 9-17 * * 1-5 schedules a task to run once per hour during business hours on weekdays only.
Field-by-field breakdown:
0(Minute): At minute 0. The task fires at the top of each qualifying hour.9-17(Hour): From hour 9 (9 AM) through hour 17 (5 PM). The range restricts execution to standard business hours, giving 9 execution points per day.*(Day of Month): Every day from 1 through 31. No restriction on the day of the month.*(Month): Every month from January through December. No restriction on the month.1-5(Day of Week): Monday through Friday. The range covers all five business days, excluding weekends.
This means your task will execute 9 times per weekday (at 9 AM, 10 AM, 11 AM, noon, 1 PM, 2 PM, 3 PM, 4 PM, and 5 PM), totaling 45 executions per work week. This schedule is ideal for hourly tasks that are only relevant during the business day. It avoids wasting resources on off-hours execution and keeps activity aligned with when your team is actively working and monitoring systems. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.
Use Case
Ideal for hourly syncing of CRM contact data with your email marketing platform during business hours to keep campaigns targeting current leads.
Try It — Interactive Builder
Every hour from 9:00 AM to 5:00 PM on weekdays
Next 10 Executions
Ctrl+Shift+C to copy expression