Cron · Days and weeks

Cron Expression for Every Hour During Business Hours

0 9-17 * * 1-5 Runs on the hour from 09:00 to 17:00, Monday to Friday — nine runs per working day.

Unix cron · UTC
“At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday”
Presets
Direction
Clock

Every Hour During Business Hours: Unix / Linux cron expression

0 9-17 * * 1-5

“At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday.”

What each field means
FieldValueMeaning
Minute0:00
Hour9-179 AM–5 PM
Day of month*every day
Month*every month
Day of week1-5Mon–Fri

Every Hour During Business Hours in every cron format

SchedulerExpression
Unix / Linux cron
crontab, cronie, Vixie cron, Kubernetes CronJob, GitHub Actions
0 9-17 * * 1-5
Quartz
Quartz Scheduler (Java)
0 0 9-17 ? * MON-FRI
Spring @Scheduled
Spring Framework CronExpression and @Scheduled
0 0 9-17 * * MON-FRI
AWS EventBridge
EventBridge rules and Scheduler cron()
cron(0 9-17 ? * MON-FRI *)

Next run times (UTC)

  1. Mon, Dec 7, 2026 09:00
  2. Mon, Dec 7, 2026 10:00
  3. Mon, Dec 7, 2026 11:00
  4. Mon, Dec 7, 2026 12:00
  5. Mon, Dec 7, 2026 13:00

Calculated when this page was generated. Use the tester above for live times in your own time zone.

Tip

The hour range 9-17 includes 17:00. Use 9-16 if the last run should be at 16:00, or */15 9-17 * * 1-5 to run every 15 minutes instead.

Copy-ready examples

# At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday
0 9-17 * * 1-5  /path/to/command >> /var/log/my-job.log 2>&1
crontab (Linux)
apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  # At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday
  schedule: "0 9-17 * * 1-5"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: my-job
              image: busybox:1.36
              command: ["sh", "-c", "date; echo Hello"]
Kubernetes CronJob
# At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday (UTC)
# GitHub Actions schedules always run in UTC and may start a few minutes late.
on:
  schedule:
    - cron: "0 9-17 * * 1-5"
GitHub Actions (UTC)
// At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday
@Scheduled(cron = "0 0 9-17 * * MON-FRI", zone = "UTC")
public void runJob() {
    // ...
}

// Or externalise it in application.yml:
// app.jobs.my-job.cron: "0 0 9-17 * * MON-FRI"
// @Scheduled(cron = "${app.jobs.my-job.cron}", zone = "UTC")
Spring Boot

Common questions

What is the cron expression for every hour during business hours?

In standard Unix cron (crontab, Kubernetes, GitHub Actions) use 0 9-17 * * 1-5. It means: At minute 0 past every hour from 09:00 through 17:00, on Monday through Friday.

How do I run a Spring @Scheduled job every hour during business hours?

Use @Scheduled(cron = "0 0 9-17 * * MON-FRI"). Spring cron has six fields, starting with seconds. Add zone = "Europe/London" (or any IANA zone) to run it in a specific time zone instead of the server's.

What is the Quartz cron expression for every hour during business hours?

0 0 9-17 ? * MON-FRI. Quartz adds a seconds field at the start and requires ? in either the day-of-month or day-of-week field.

How do I write every hour during business hours for AWS EventBridge?

Use cron(0 9-17 ? * MON-FRI *). EventBridge cron has six fields including a year, and one of the two day fields must be ?. Classic EventBridge rules run in UTC; EventBridge Scheduler accepts a time zone.

Which time zone does this cron schedule use?

Cron runs in the time zone of the scheduler: the server's local zone for crontab, UTC for GitHub Actions and EventBridge rules, or the zone you set with CRON_TZ, Kubernetes timeZone, Spring zone or Quartz inTimeZone. Choose a zone in the tester above to see local run times.

More cron schedules

Similar: Every Weekday at 9 AM (0 9 * * 1-5) · Every 15 Minutes (*/15 * * * *) · Every Hour (0 * * * *)