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.
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)
Field by field
01/60:00
01/2400:00
*31/31Every day of the month
*12/12Every month
01/7Sunday
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.
| Platform | Expression | Open in tool |
|---|---|---|
| crontab | 0 0 * * 0 | Open in the crontab tool |
| Quartz | 0 0 0 ? * SUN | Open in the Quartz tool |
| AWS EventBridge | cron(0 0 ? * SUN *) | Open in the AWS EventBridge tool |
| GitHub Actions | 0 0 * * 0 | Open in the GitHub Actions tool |
| Kubernetes | 0 0 * * 0 | Open in the Kubernetes tool |
| systemd | Sun *-*-* 00:00:00 | Open in the systemd tool |
Variations
| Expression | Runs | Open in explainer |
|---|---|---|
0 0 * * SUN | At 00:00 on Sunday. | Open 0 0 * * SUN in the explainer |
0 0 * * 7 | At 00:00 on Sunday. | Open 0 0 * * 7 in the explainer |
0 3 * * 0 | At 03:00 on Sunday. | Open 0 3 * * 0 in the explainer |
0 0 * * 6 | At 00:00 on Saturday. | Open 0 0 * * 6 in the explainer |
0 0 * * 1 | At 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.