Utilo

Weekends at 10:00 Cron – Free, Online, Private

0 10 * * 6,0 runs at 10:00 on Saturday and Sunday. Plain English: At 10:00, only on Sunday and Saturday

Expression
Next 5 runs (UTC)

The next runs appear when the expression parses.

crontab
0 10 * * 6,0 /usr/local/bin/job
GitHub Actions
on:
  schedule:
    - cron: "0 10 * * 6,0"
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
  name: job
spec:
  schedule: "0 10 * * 6,0"
  timeZone: "Etc/UTC"
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox:1.36
              args: ["echo", "job"]

The expression

0 10 * * 6,0 is a five-field cron expression: minute, hour, day of month, month, day of week. There is no seconds field and no year field. At 10:00, only on Sunday and Saturday The next five run times on this page are computed in your browser with the same expression, in UTC, so a reload later in the hour shows a later list. Edit the box if you want to nudge a field and watch the list change, or open the line in the cron parser.

What each field is doing

The minute field is the single value 0. No other value in the 0–59 range matches. The hour field is the single value 10. No other value in the 0–23 range matches. The day-of-month field is an asterisk, so every value in the 1–31 range is allowed. This field is not what limits the schedule. The month field is an asterisk, so every value in the 1–12 range is allowed. This field is not what limits the schedule. The day-of-week field is the list 6,0. Only those 0–6, Sunday as 0 or 7 values match. A list does not fill in the numbers between the commas.

When the day-of-month and day-of-week fields are both something other than *, many cron implementations run the job if either field matches. This preset leaves at least one of those two fields as *, so you do not have to resolve that rule to predict it. Names such as MON and JAN are readable and widely accepted. The snippets use numbers so a strict parser does not have to know the names.

Why this schedule

Weekend-only work is a list, not a range, because Saturday is 6 and Sunday is 0. A range 6-7 is not portable, and a range 0-6 is the whole week. The comma list 6,0 is the two days and nothing between them, because there is nothing between them on the clock either.

A weekend report for an on-call rotation, a quieter rebuild that was banned on weekdays, and a reminder that only the weekend roster should see all fit. Do not use it for a job the weekday staff needs on Monday morning unless the output is durable.

Where it goes wrong

Order in the list does not matter. 0,6 is the same schedule. Some readers assume a list means a range. It does not. The next-run list is the check: you should see a Saturday and a Sunday and then a gap until the next Saturday. If a third weekday appears, the field is wrong.

A sixth field is the seconds field used by Quartz, some Spring apps, and some Kubernetes setups that are not the classic CronJob schedule. Classic crontab, GitHub Actions, and the schedule field of a batch/v1 CronJob are five fields. If you paste a six-field line into those systems, the extra token shifts every field one place to the left and the job runs on a different day. L, W, and the # 'nth weekday' modifier are real in some daemons and rejected or reinterpreted in others. They are not used on this page. The English description and the next runs both refuse to guess at a token the calculator does not share with every target.

Crontab, GitHub Actions, and Kubernetes

GitHub Actions accepts this cadence. The schedule is UTC, it can start late when the service is busy, and it is dropped if the repository has had no activity for sixty days. The workflow file only needs the expression. It does not need a seconds field.

A user crontab does not include the username. A system crontab, the kind in /etc/crontab, inserts the user between the expression and the command. The line below is the user form. Kubernetes CronJob has used spec.timeZone since 1.27. The manifest sets it to Etc/UTC so the schedule matches the next-run list. Remove the field on a cluster older than that, and know that the schedule then uses the controller's zone.

crontab0 10 * * 6,0 /usr/local/bin/job
GitHub Actionson:
  schedule:
    - cron: "0 10 * * 6,0"
Kubernetes CronJobapiVersion: batch/v1
kind: CronJob
metadata:
  name: weekends-at-10am
spec:
  schedule: "0 10 * * 6,0"
  timeZone: "Etc/UTC"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: job
              image: busybox:1.36
              args: ["echo", "weekends-at-10am"]
          restartPolicy: OnFailure
  • Keep the command idempotent. Cron does not remember a failure and it does not skip a run that is already in progress.
  • Write the timezone next to the expression. UTC in the file and local time in the ticket are how a job fires eight hours early.
  • Offset the minute if several jobs would otherwise start at once.

Frequently asked questions

What does 0 10 * * 6,0 mean?

Weekends at 10:00 Cron is the five-field expression 0 10 * * 6,0. At 10:00, only on Sunday and Saturday

Does 0 10 * * 6,0 include a seconds field?

No. Weekends at 10:00 Cron (0 10 * * 6,0) is minute, hour, day of month, month, and day of week. Add a seconds field only if the scheduler you are configuring documents six fields, and do not paste that six-field line into a five-field crontab.

Which timezone are the next runs of 0 10 * * 6,0 shown in?

UTC. The next five times for Weekends at 10:00 Cron are computed from 0 10 * * 6,0 in UTC. GitHub Actions schedules are UTC. A server crontab uses the server's zone unless you set one. The Kubernetes snippet on this page sets timeZone to Etc/UTC.

Can I edit 0 10 * * 6,0 on this page?

Yes. The box starts as 0 10 * * 6,0, the Weekends at 10:00 Cron preset, and recomputes the English sentence and the next five UTC runs as you type. The cron parser and the cron builder open the same kind of five-field expression.