Cron job every hour at weekends
0 * * * 0,6 Every hour, only on Sunday and Saturday
Typical use: weekend-only batch work. Try it below — change any field and see the next runs in your timezone.
Every hour, only on Sunday and Saturday
Valid
- 1Sun, Sep 27, 2026, 4:00 PM
- 2Sun, Sep 27, 2026, 5:00 PM
- 3Sun, Sep 27, 2026, 6:00 PM
- 4Sun, Sep 27, 2026, 7:00 PM
- 5Sun, Sep 27, 2026, 8:00 PM
- 6Sun, Sep 27, 2026, 9:00 PM
- 7Sun, Sep 27, 2026, 10:00 PM
- 8Sun, Sep 27, 2026, 11:00 PM
- 9Sat, Oct 3, 2026, 12:00 AM
- 10Sat, Oct 3, 2026, 1:00 AM
Field by field
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | minute 0 |
| Hour | * | every hour |
| Day of month | * | every day |
| Month | * | every month |
| Day of week | 0,6 | days Sunday, Saturday |
The same schedule on every platform
The five fields mean the same thing everywhere, but each scheduler wraps them differently — and AWS and Quartz number weekdays from 1 (Sunday), not 0.
0 * * * 0,6 /path/to/script.sh >> /var/log/job.log 2>&1 spec:
schedule: "0 * * * 0,6" GitHub ActionsRuns in UTC.
on:
schedule:
- cron: '0 * * * 0,6' AWS EventBridgeEventBridge weekdays are 1–7 (1 = Sunday) and one day field must be ?.
cron(0 * ? * 1,7 *) Quartz (Java)Seconds first; weekdays 1–7 with 1 = Sunday.
0 0 * ? * 1,7 Spring @ScheduledSpring adds a seconds field but keeps Unix weekday numbers.
@Scheduled(cron = "0 0 * * * 0,6") [TimerTrigger("0 0 * * * 0,6")] Running a job every hour at weekends
What is the cron expression for every hour at weekends?
0 * * * 0,6. In plain English: every hour, only on Sunday and Saturday. It works in standard 5-field cron — Linux crontab, Kubernetes and GitHub Actions.How do I schedule a job every hour at weekends in AWS EventBridge?
Use
cron(0 * ? * 1,7 *). EventBridge needs six fields (a year at the end), a ? in one of the day fields, and numbers weekdays 1–7 starting on Sunday.What timezone does "0 * * * 0,6" run in?
Cron uses the server's timezone. Kubernetes CronJobs default to the controller's timezone (set
spec.timeZone on 1.27+), GitHub Actions and AWS EventBridge rules always use UTC. Use the timezone picker above to see the next runs in your own time.