OpsPane

0 0 * * 0 runs a cron job weekly at 00:00 on Sunday. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd, and avoid the Sunday traps.

crontab expression

0 0 * * 0

In plain English

At 00:00 on Sunday.

52 runs a year (counted over 2026, UTC)

0 0 is 00:00 and 0 in the day-of-week field is Sunday, so the job runs once a week as Saturday turns into Sunday. crontab's @weekly is the same schedule. Midnight on Sunday is the start of Sunday, not the end of it.

Field by field

Minute01/60

:00

Hour01/24

00:00

Day of month*31/31

Every day of the month

Month*12/12

Every month

Day of week01/7

Sunday

Day matchAND

Day of week decides; day of month is *.

The same schedule on every platform

Each expression below is the same schedule written for that platform, checked run by run against the crontab version.

PlatformExpressionOpen in tool
crontab0 0 * * 0Open in the crontab tool
Quartz0 0 0 ? * SUNOpen in the Quartz tool
AWS EventBridgecron(0 0 ? * SUN *)Open in the AWS EventBridge tool
GitHub Actions0 0 * * 0Open in the GitHub Actions tool
Kubernetes0 0 * * 0Open in the Kubernetes tool
systemdSun *-*-* 00:00:00Open in the systemd tool

Variations

ExpressionRunsOpen in explainer
0 0 * * SUNAt 00:00 on Sunday.Open 0 0 * * SUN in the explainer
0 0 * * 7At 00:00 on Sunday.Open 0 0 * * 7 in the explainer
0 3 * * 0At 03:00 on Sunday.Open 0 3 * * 0 in the explainer
0 0 * * 6At 00:00 on Saturday.Open 0 0 * * 6 in the explainer
0 0 * * 1At 00:00 on Monday.Open 0 0 * * 1 in the explainer

Watch out for

Sunday is 0 in crontab but 1 in Quartz and AWS

Quartz and AWS EventBridge number the days from 1 = Sunday, so the same schedule is 0 0 0 ? * SUN or cron(0 0 ? * SUN *). Writing SUN avoids the mix-up everywhere.

7 is not Sunday everywhere

crontab accepts both 0 and 7 for Sunday, but Kubernetes rejects 7 and GitHub Actions documents only 0 to 6. Use 0 or SUN.

The end of Sunday is Monday at 00:00

If the job should run after the whole weekend, 0 0 * * 1 (00:00 Monday) is usually what people mean by the end of Sunday.

FAQ

What is the cron expression for every Sunday at midnight?

0 0 * * 0. It runs at 00:00 every Sunday, once a week.

Is @weekly the same as 0 0 * * 0?

Yes, in crontab @weekly means 00:00 on Sunday. GitHub Actions, AWS EventBridge and Quartz do not accept @weekly, so write the fields out there.

Should I use 0 or 7 for Sunday?

Use 0 or SUN. crontab accepts 7 too, but Kubernetes does not.

How do I run every Sunday at 3 AM?

Use 0 3 * * 0. The minute is 0, the hour is 3 and day of week 0 is Sunday.