Cron expression for weekends only

0 10 * * 0,6

At 10:00, on weekends.

0,6 in the day-of-week field means Sunday and Saturday. This runs at 10:00 on both days.

Try it and tweak it

Change any field below and the preview updates. Set the time zone to match your server.

✓ Valid cron

At 10:00, on weekends.

Next 10 runs

Calculating in your browser…

Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.

Same schedule in other dialects

Unix crontab0 10 * * SUN,SAT
Quartz0 0 10 ? * SUN,SAT
Spring @Scheduled0 0 10 ? * SUN,SAT
AWS EventBridgecron(0 10 ? * SUN,SAT *)

Add it to your crontab

  1. Open your crontab with crontab -e.
  2. Add one line: 0 10 * * 0,6 /full/path/to/command >> /var/log/job.log 2>&1
  3. Save and exit. Cron reloads automatically; confirm with crontab -l.

Need the output silenced, a lock against overlapping runs or a system crontab user column? The generator’s full crontab line builder writes it for you. Already have a crontab? Paste it into the crontab parser to check every job.

Variations

0 10 * * SAT,SUNSame schedule with day names
*/30 * * * 6,0Every 30 minutes all weekend

In other schedulers

crontab line0 10 * * 0,6 /path/to/command
Quartz0 0 10 ? * SUN,SAT
Spring@Scheduled(cron = "0 0 10 ? * SUN,SAT")
AWS EventBridgecron(0 10 ? * SUN,SAT *)
GitHub Actions- cron: '0 10 * * 0,6' (UTC)
Kubernetesschedule: "0 10 * * 0,6"

Questions

What is the cron expression for every weekend?
0 10 * * 0,6. At 10:00, on weekends.
How do I write it in Quartz or Spring?
Add a seconds field and use "?" for the unused day field: 0 0 10 ? * SUN,SAT. In Spring: @Scheduled(cron = "0 0 10 ? * SUN,SAT").
What is the AWS EventBridge version?
cron(0 10 ? * SUN,SAT *). AWS uses six fields with a year at the end and needs "?" in one of the day fields.
How do I set up a cron job to run every weekend?
Run crontab -e, add the line "0 10 * * 0,6 /full/path/to/command >> /var/log/job.log 2>&1" and save. Use absolute paths, because cron runs with a minimal PATH. Check it with crontab -l.
Which time zone will it use?
The time zone of the machine or service running cron. GitHub Actions and Vercel use UTC; Kubernetes uses spec.timeZone if set. The preview above lets you pick a zone.