Cron expression for every 15 minutes, weekdays 9 to 5

Runs the job every 15 minutes between 9:00 AM and 5:59 PM, Monday through Friday.

*/15 9-17 * * 1-5

Generator

Every 15 minutes, between 09:00 AM and 05:59 PM, Monday through Friday

Field by field

  • Minute · 0–59 */15 every 15th minute
  • Hour · 0–23 9-17 from 09:00 through 17:00
  • Day of month · 1–31 * every day of the month
  • Month · 1–12 or JAN–DEC * every month
  • Day of week · 0–7 or SUN–SAT 1-5 Monday through Friday

Next runs in your local time

Why this schedule, and when it bites

Business-hours cron stacks three ideas in one line: a step in the minute field, an hour range, and a weekday range. */15 9-17 * * 1-5 fires 36 times a day, Monday through Friday, from 09:00 to 17:59. It is the schedule behind intraday dashboards and support-queue pollers, and the one where the 17:59 boundary surprises people.

17 means the whole 17th hour. The range 9-17 includes every minute of 17:00 to 17:59, so the last run is 17:45. If the job must stop at 17:00 sharp, write 9-16. Read ranges as inclusive of the whole unit, not as cut-off times.

One expression, two independent ranges. The minute step and the hour range are independent: the job fires every 15 minutes inside the hours, but the hours do not align to the step. 9-17 starts at 09:00 because that is a quarter hour; a 10-18 range would start at 10:00 the same way. No drift, no catch-up logic.

Holidays are not weekends. 1-5 skips Saturday and Sunday, not public holidays. A poller that runs on a national holiday finds an empty queue, which is harmless; a report that mails the whole company on a holiday is not. Gate holidays inside the job with a calendar check.

Where this cron expression shows up

  • Polling a system that only runs during business hours
  • Intraday reporting
  • Keeping a support queue moving while the team is at work

Common variations

  • Every 5 minutes during business hours

    */5 9-17 * * 1-5 Every 5 minutes, between 09:00 AM and 05:59 PM, Monday through Friday

  • Every 15 minutes around the clock

    */15 * * * * Every 15 minutes

Ranges, steps, and names are spelled out on the cheat sheet.

Questions this schedule raises

Does */15 9-17 * * 1-5 include 5 PM?

It includes the entire 17:00 hour: runs at 17:00, 17:15, 17:30 and 17:45. The last one is 17:45. To end at 17:00 exactly, use hours 9-16 and accept that 16:45 is the final run.

How many runs a day is that?

Four per hour across nine hours, 36 runs per weekday and 180 in a five-day week. If that feels heavy for the API behind it, drop to */30 and halve it without changing the hours or the weekdays.