Every Weekend Cron Expression
Runs Saturday and Sunday at midnight.
Expression
0 0 * * 0,6Try it in the tester →Field Breakdown
0
minute
0
hour
*
day-of-month
*
month
0,6
day-of-week
minuteat minute 0
hourat midnight
day-of-monthevery day (1–31)
monthevery month (1–12)
day-of-weekSunday (0) and Saturday (6)
How It Works
Day-of-week field lists Sunday (0) and Saturday (6). Weekdays are skipped.
Example Run Times
- Sat 00:00:00
- Sun 00:00:00
- Sat 00:00:00 (next week)
- Sun 00:00:00 (next week)
- Sat 00:00:00 (week after)
Frequently Asked Questions
Why not `6,0`?
Order doesn't matter — cron evaluates membership, not sequence. `0,6` and `6,0` are equivalent.