Minute 0 of hour 0, every day: the job runs once a day at 00:00, the start of the day, in whatever time zone the scheduler uses. In crontab it is the same as @daily (or @midnight).
Run a cron job every day at midnight with 0 0 * * *. The same schedule for Quartz, AWS, GitHub Actions, Kubernetes and systemd, plus the time zone traps.
crontab expression
0 0 * * *
In plain English
At 00:00.
1 run a day (counted over 2026, UTC)
Field by field
01/60:00
01/2400:00
*31/31Every day of the month
*12/12Every month
*7/7Every day of the week
Runs every day.
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 * * * | Open in the crontab tool |
| Quartz | 0 0 0 * * ? | Open in the Quartz tool |
| AWS EventBridge | cron(0 0 * * ? *) | Open in the AWS EventBridge tool |
| GitHub Actions | 0 0 * * * | Open in the GitHub Actions tool |
| Kubernetes | 0 0 * * * | Open in the Kubernetes tool |
| systemd | *-*-* 00:00:00 | Open in the systemd tool |
Variations
| Expression | Runs | Open in explainer |
|---|---|---|
0 0 * * 1-5 | At 00:00 on Monday through Friday. | Open 0 0 * * 1-5 in the explainer |
30 0 * * * | At 00:30. | Open 30 0 * * * in the explainer |
0 0 * * 0 | At 00:00 on Sunday. | Open 0 0 * * 0 in the explainer |
0 0 1 * * | At 00:00 on day 1 of the month. | Open 0 0 1 * * in the explainer |
0 12 * * * | At 12:00. | Open 0 12 * * * in the explainer |
Watch out for
Midnight in which time zone?
crontab uses the server's zone (or CRON_TZ), GitHub Actions uses UTC unless you add a timezone key, a Kubernetes CronJob uses the controller's zone unless spec.timeZone is set, and classic EventBridge rules always use UTC. The same five fields can fire hours apart.
A few zones skip midnight once a year
In America/Santiago, America/Havana, Asia/Beirut, Africa/Cairo and the Azores, clocks spring forward at midnight, so 00:00 does not exist on that day. crontab and Kubernetes skip the run; GitHub Actions runs it at the next valid time instead. The explainer lists the exact dates for your zone.
Everyone else runs at 00:00 too
Shared services see a spike at the top of the hour, and hosted schedulers get busiest then. If the exact minute does not matter, pick an odd one such as 17 0 * * *.
@daily is not portable
GitHub Actions, Quartz and AWS do not accept the @-macros. Write the five fields, 0 0 * * *, when the same expression has to work everywhere.
FAQ
What is the cron expression for every day at midnight?
0 0 * * * in crontab, Kubernetes and GitHub Actions. Quartz: 0 0 0 * * ?. AWS EventBridge: cron(0 0 * * ? *). systemd: OnCalendar=daily, which means *-*-* 00:00:00.
Is 0 0 * * * the same as @daily?
Yes, in crontab and in Kubernetes CronJobs @daily and @midnight both mean 0 0 * * *. GitHub Actions does not support the macros, so use the five fields there.
Why did my GitHub Actions job run at midnight UTC, not my time?
Scheduled workflows run in UTC by default. Add timezone with an IANA name next to cron, or convert 00:00 to UTC hours yourself.
Does 00:00 belong to the old day or the new one?
00:00 is the first minute of the new day. A job that processes 'yesterday' should compute yesterday's date explicitly rather than use today's.