Cron Expression for Every Hour (9 AM–5 PM Mon–Fri): 0 9-17 * * 1-5

Runs on the hour from 09:00 to 17:00, Monday through Friday (9 runs/day). Ideal for: Hourly sales/pipeline Slack digests, daytime canary tests, and SaaS tenant syncs.

0 9-17 * * 1-5
Runs on the hour from 09:00 to 17:00, Monday through Friday (9 runs/day)

5-Field Cron Breakdown

0
Minute
At minute 00
9-17
Hour
Hours 09 through 17 inclusive
*
Day of Month
Every day of month
*
Month
Every month
1-5
Day of Week
Monday–Friday (1–5)

Live Next-10-Runs Simulator (UTC & Local Time)

Runs on the hour from 09:00 to 17:00, Monday through Friday (9 runs/day)

Run #UTC Execution TimeSelected TimezoneRelative
Calculating next 10 runs locally...

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 9-17 * * 1-5 /usr/bin/flock -n /tmp/my-job.lock /usr/local/bin/job.sh >> /var/log/my-job.log 2>&1

GitHub Actions Workflow YAML

on:
  schedule:
    - cron: '0 9-17 * * 1-5' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

Quartz 6-field: 0 0 9-17 ? * 2-6
AWS EventBridge: cron(0 9-17 ? * 2-6 *)

Kubernetes CronJob Spec

apiVersion: batch/v1
kind: CronJob
metadata:
  name: scheduled-job
spec:
  schedule: "0 9-17 * * 1-5"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid

Production Pitfalls & Best Practices

Key Pitfall: Both endpoints `9` and `17` are inclusive, producing exact runs at 09:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, and 17:00.
Common Use Cases: Hourly sales/pipeline Slack digests, daytime canary tests, and SaaS tenant syncs.
JetBrains Plugin + Gumroad Kit

Running Scheduled Jobs in Production? Protect Secrets with JetBrains EnvGuard

Catch leaked API keys, database URLs, and broken .env configs inside IntelliJ IDEA / PyCharm before your cron jobs hit production, plus grab our DevOps Automation Kits on Gumroad.

Frequently Asked Questions

What does the cron expression `0 9-17 * * 1-5` mean?

`0 9-17 * * 1-5` means: Runs on the hour from 09:00 to 17:00, Monday through Friday (9 runs/day). Its 5 fields map to Minute=0, Hour=9-17, Day-of-Month=*, Month=*, and Day-of-Week=1-5.

How do I run `0 9-17 * * 1-5` in GitHub Actions?

Add `on: schedule: - cron: '0 9-17 * * 1-5'` to your workflow YAML. Remember GitHub Actions always interprets cron schedules in UTC and enforces a minimum 5-minute interval.

What is the Quartz / AWS EventBridge equivalent of `0 9-17 * * 1-5`?

In 6-field Quartz cron use `0 0 9-17 ? * 2-6` (adding leading seconds `0` and `?` mutual exclusion). In AWS EventBridge use `cron(0 9-17 ? * 2-6 *)`.

Related Cron Recipes