Cron Expression for Weekends (Sat & Sun) at Midnight: 0 0 * * 0,6

Runs at 00:00 on Saturday and Sunday. Ideal for: Weekend full-table reindexing, heavy archive compression, and non-urgent security scans.

0 0 * * 0,6
Runs at 00:00 on Saturday and Sunday

5-Field Cron Breakdown

0
Minute
At minute 00
0
Hour
At hour 00
*
Day of Month
Every day of month
*
Month
Every month
0,6
Day of Week
Sunday (0) and Saturday (6)

Live Next-10-Runs Simulator (UTC & Local Time)

Runs at 00:00 on Saturday and Sunday

Run #UTC Execution TimeSelected TimezoneRelative
Calculating next 10 runs locally...

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 0 * * 0,6 /usr/bin/flock -n /tmp/my-job.lock /usr/local/bin/job.sh >> /var/log/my-job.log 2>&1

GitHub Actions Workflow YAML

on:
  schedule:
    - cron: '0 0 * * 0,6' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

Quartz 6-field: 0 0 0 ? * 1,7
AWS EventBridge: cron(0 0 ? * 1,7 *)

Kubernetes CronJob Spec

apiVersion: batch/v1
kind: CronJob
metadata:
  name: scheduled-job
spec:
  schedule: "0 0 * * 0,6"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid

Production Pitfalls & Best Practices

Key Pitfall: Sunday is `0` (or `7` in Vixie cron) and Saturday is `6`. Using `0,6` is the most portable cross-platform syntax.
Common Use Cases: Weekend full-table reindexing, heavy archive compression, and non-urgent security scans.
Chrome Extension + Gumroad Pro

Automate Browser Checks & Webhooks with DiffRadar & HAR-to-Playwright

Pair your cron schedules with our Chrome extensions (DiffRadar, HAR-to-Playwright, Page2MCP) and production workflow templates to monitor APIs and scrape structured data reliably.

Frequently Asked Questions

What does the cron expression `0 0 * * 0,6` mean?

`0 0 * * 0,6` means: Runs at 00:00 on Saturday and Sunday. Its 5 fields map to Minute=0, Hour=0, Day-of-Month=*, Month=*, and Day-of-Week=0,6.

How do I run `0 0 * * 0,6` in GitHub Actions?

Add `on: schedule: - cron: '0 0 * * 0,6'` to your workflow YAML. Remember GitHub Actions always interprets cron schedules in UTC and enforces a minimum 5-minute interval.

What is the Quartz / AWS EventBridge equivalent of `0 0 * * 0,6`?

In 6-field Quartz cron use `0 0 0 ? * 1,7` (adding leading seconds `0` and `?` mutual exclusion). In AWS EventBridge use `cron(0 0 ? * 1,7 *)`.

Related Cron Recipes