Cron Every 15 Minutes During Business Hours
Run a cron job every 15 minutes during business hours (9 AM-5 PM, Mon-Fri) with */15 9-17 * * 1-5. Complete field breakdown and examples.
Cron Expression
*/15 9-17 * * 1-5
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | */15 | Every 15th minute |
| 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 */15 9-17 * * 1-5 schedules a task to run every 15 minutes, but only during business hours on weekdays.
Field-by-field breakdown:
*/15(Minute): Every 15th minute, starting from minute 0. Execution occurs at minutes 0, 15, 30, and 45 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, including the 5 PM hour.*(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 36 times per hour during 9 eligible hours, totaling up to 180 executions per work week. This schedule is perfect for tasks that only matter during active business hours, such as monitoring dashboards, syncing real-time data, or checking service health. It conserves resources by not running during evenings, nights, or weekends. 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
Perfect for monitoring SLA compliance of customer support tickets during business hours, alerting managers when response times exceed thresholds.
Try It — Interactive Builder
Every 15 minutes from 9:00 AM to 5:00 PM on weekdays
Next 10 Executions
Ctrl+Shift+C to copy expression