0 0 * * * runs a cron job every day at midnight
By TechCompare · Updated · How we check
0 0 * * * is correct for daily midnight execution, but always confirm the server timezone first. A job you think runs at midnight local time might actually be firing in the middle of the afternoon. Document the intended timezone next to the cron expression in your crontab.
Calculator
Next runs of 0 0 * * *
Example from Mon, Nov 9, 2026 at 8:00 AM.
- Tue, Nov 10, 2026 at 12:00 AM
- Wed, Nov 11, 2026 at 12:00 AM
- Thu, Nov 12, 2026 at 12:00 AM
- Fri, Nov 13, 2026 at 12:00 AM
- Sat, Nov 14, 2026 at 12:00 AM
0 0 * * * runs a job at exactly midnight (00:00) every day. The first zero fixes the minute to :00, the second zero fixes the hour to 0 (midnight in 24-hour time).
How this is calculated
Midnight cron jobs run in the server's local timezone, which is typically UTC on cloud VMs and containerized environments. A 0 0 * * * job on a UTC server runs at 00:00 UTC.
If you need the job to run at local midnight, either set the server's timezone or adjust the hour field: for EST (UTC-5), use 0 5 * * *. The @daily and @midnight shortcuts are equivalent to 0 0 * * *.
Verdict
Confirm the server timezone before you trust 0 0 * * *.
A UTC server runs that job at 4 PM PST or 7 PM EST during standard time. Either set the server timezone, shift the hour (0 5 for EST midnight), or rely on the @daily shorthand once you've confirmed the reference frame.
More Cron scenarios
Related guides
Frequently asked questions
How do I run a cron job every day at midnight?
Why does my midnight cron job run at the wrong time?
Is there a difference between @daily and 0 0 * * *?
Related tools
Unix Timestamp
Convert between Unix timestamps and human-readable dates.
Use toolCHMOD Configurator
Calculate Linux file permissions using checkboxes or octal numbers, then view the matching symbolic notation.
Use toolText Encoding Converter
Convert text to Base64, binary, hex, URL encoding and HTML entities, and back again.
Use tool