Cron Every Night at 12:30 AM

Schedule a cron job to run at 12:30 AM every night using 30 0 * * *. Detailed field-by-field breakdown with offset scheduling tips and examples.

Cron Expression

30 0 * * *

Field Breakdown

FieldValueMeaning
Minute30At 30
Hour0At 0
Day of Month*Every day of the month (1–31)
Month*Every month (1–12)
Day of Week*Every day of the week (Sun–Sat)

Detailed Explanation

The cron expression 30 0 * * * schedules a task to run once per day at exactly 12:30 AM (00:30).

Field-by-field breakdown:

  • 30 (Minute): At minute 30. The task fires at the half-hour mark, 30 minutes past midnight.
  • 0 (Hour): At hour 0 (12 AM / midnight). Combined with minute 30, this means 12:30 AM.
  • * (Day of Month): Every day from 1 through 31. No restriction on the day of the month.
  • * (Month): Every month from January through December. No restriction on which month.
  • * (Day of Week): Every day of the week from Sunday through Saturday. No restriction on the day of the week.

This means your task will execute once per day at 12:30 AM server time. Scheduling at 12:30 AM instead of exactly midnight is a smart strategy to avoid the "midnight stampede" problem. Many systems schedule nightly jobs at exactly 00:00, which can cause resource contention on shared infrastructure. By offsetting to 00:30, your task runs after the initial rush of midnight jobs has cleared, reducing competition for CPU, memory, and I/O resources. This 30-minute offset also gives any midnight log rotation or date-boundary tasks time to complete first. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.

Use Case

Useful for nightly log compression and archival tasks that should run after midnight log rotation has completed but still early in the off-peak window.

Try It — Interactive Builder

Every day at 12:30 AM

**/5*/10*/15*/300
**/2*/3*/6*/120
*1151,15*/2
*11,4,7,101,7
*1-50,615

Next 10 Executions

1.Fri, Mar 13, 2026, 12:30 AM
2.Sat, Mar 14, 2026, 12:30 AM
3.Sun, Mar 15, 2026, 12:30 AM
4.Mon, Mar 16, 2026, 12:30 AM
5.Tue, Mar 17, 2026, 12:30 AM
6.Wed, Mar 18, 2026, 12:30 AM
7.Thu, Mar 19, 2026, 12:30 AM
8.Fri, Mar 20, 2026, 12:30 AM
9.Sat, Mar 21, 2026, 12:30 AM
10.Sun, Mar 22, 2026, 12:30 AM

Ctrl+Shift+C to copy expression

Customize this expression