Open in the Cron Expression Generator →
What 0 9-17 * * 1-5 means
Cron reads five fields from left to right: minute, hour, day of the month, month and day of the week. For every hour during business hours they are:
| Field | Value | Meaning | Allowed |
|---|---|---|---|
| Minute | 0 | 0 | 0–59 |
| Hour | 9-17 | 09:00 through 17:00 | 0–23 |
| Day of month | * | every day of the month | 1–31 |
| Month | * | every month | 1–12 |
| Day of week | 1-5 | Monday through Friday | 0–6 (Sun–Sat) |
Next runs
Calculated in your browser for your time zone. On a server, cron uses the server’s time zone (often UTC).
- Enable JavaScript to see the next run times.
Typical uses
- Syncing during office hours
- Refreshing dashboards while people use them
Good to know
Runs at the top of every hour from 9:00 to 17:00, Monday to Friday.
Use it in crontab, GitHub Actions, Kubernetes and Node.js
crontab (crontab -e):
0 9-17 * * 1-5 /usr/local/bin/my-job.sh >> /var/log/my-job.log 2>&1
GitHub Actions (times are UTC):
on:
schedule:
- cron: '0 9-17 * * 1-5'
Kubernetes CronJob:
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "0 9-17 * * 1-5"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: my-job
image: alpine:3
command: ["sh", "-c", "echo running"]
Node.js (node-cron):
import cron from 'node-cron';
cron.schedule('0 9-17 * * 1-5', () => {
// your job
});
Related schedules
- Every weekday at 9 am —
0 9 * * 1-5 - Every weekend —
0 10 * * 6,0 - Every Monday —
0 0 * * 1 - Every Friday at 5 pm —
0 17 * * 5 - Every Sunday —
0 0 * * 0 - Every week —
0 0 * * 0 - Every 15 minutes during business hours —
*/15 9-17 * * 1-5
Frequently asked questions
What is the cron expression for every hour during business hours?
0 9-17 * * 1-5. It runs at 0; 09:00 through 17:00; Monday through Friday.Which time zone does cron use?
spec.timeZone (for example Europe/Berlin).