Cron Expression for Weekends Only
The expression is 0 9 * * 6,0 — it runs at 09:00 on Saturday and Sunday only. Paste it above to preview the next weekend runs, or read the day-number logic below.
The expression
0 9 * * 6,0 runs a job at 09:00 on Saturday and Sunday only, skipping every weekday.
Field by field
0 minute and 9 hour set 09:00. Day-of-month and month stay *. 6,0 in the day-of-week field is a list: Saturday (6) and Sunday (0).
Why 6,0 and not a range
Cron numbers the week 0–6 starting at Sunday (0) through Saturday (6). The weekend wraps around the end of the range, so you cannot write it as 6-0; use the list 6,0 (or the equivalent SAT,SUN). A range like 0-6 would mean every day.
Common variations
Weekends at midnight: 0 0 * * 6,0. Weekends every hour: 0 * * * 6,0. Saturday only: 0 9 * * 6.
FAQ
What is the cron expression for weekends only?
Use 0 9 * * 6,0 — 09:00 on Saturday (6) and Sunday (0). Change 0 9 for a different time.
Why can't I write 6-0 for the weekend?
Because the week is numbered 0 (Sun) to 6 (Sat), Saturday-to-Sunday wraps past the end of the range. Use the list 6,0 instead.
Can I use day names?
Yes — 0 9 * * SAT,SUN is equivalent to 0 9 * * 6,0 in most modern crons.