Xerobit

Cron Every Day at Midnight: 0 0 * * *

The cron expression for every day at midnight is 0 0 * * *. It runs 1 time per day in UTC (365 times in 2026). The next five run times are listed below.

  • Cron expression
    0 0 * * *
  • Schedule
    every day at midnight
  • Runs per day (UTC)
    1
  • Runs per 30 days
    30
  • systemd OnCalendar
    daily
  • AWS EventBridge
    cron(0 0 * * ? *)

What 0 0 * * * means

FieldValueMeaning
Minute0minute 0
Hour0hour 0, midnight
Day of month*every value
Month*every value
Day of week*every value

Next 5 runs after 2026-11-05 12:00 UTC

#UTCSame instant in
12026-11-06 00:00 UTC2026-11-05 19:00 New York
22026-11-07 00:00 UTC2026-11-06 19:00 New York
32026-11-08 00:00 UTC2026-11-07 19:00 New York
42026-11-09 00:00 UTC2026-11-08 19:00 New York
52026-11-10 00:00 UTC2026-11-09 19:00 New York

Computed when the site is built from the fixed reference 2026-11-05 12:00 UTC, not from your clock; New York is EST (UTC-5). For later runs use the cron builder.

Midnight can be missing, and UTC midnight is not yours

Most clock changes happen at 02:00 or 03:00, but not everywhere. In America/Havana the clocks jump from 00:00 to 01:00 on 8 March 2026, and in Asia/Beirut on 29 March 2026. On those dates the wall-clock time 00:00 does not exist, so matching 0 0 * * * against the wall clock gives 0 runs for that calendar day. The job is skipped for a whole day, not by an hour.

The more common surprise is UTC. The next midnight UTC after 2026-11-05 12:00 UTC is 2026-11-05 19:00 in New York (evening, the day before). A "nightly" job on a UTC platform such as GitHub Actions ("by default, scheduled workflows run in UTC") therefore runs in the early evening in the Americas and in the morning in much of Asia. Pick the hour in UTC that is quiet where your users are, rather than 0.

For a platform-by-platform view see GitHub Actions cron schedule.

Sources, retrieved 2026-11-05: GitHub Docs, events that trigger workflows.

0 0 * * * on other platforms

PlatformSyntax for every day at midnight
crontab0 0 * * * /path/to/script.sh
GitHub Actions- cron: '0 0 * * *' (UTC)
Kubernetes CronJobschedule: "0 0 * * *"
systemd timerOnCalendar=daily
AWS EventBridgecron(0 0 * * ? *) or rate(1 day)

FAQ

What is the cron expression for every day at midnight?

0 0 * * *.

How many times does 0 0 * * * run?

1 time per day in UTC, 365 in 2026.

Which time zone does 0 0 * * * use?

That of the machine or service running it: UTC on GitHub Actions and Vercel, the server's zone in a plain crontab.