Skip to content
Unix cron100% Client-Side

Cron Expression for Daily at 11:30 PM

30 23 * * *At 11:30 PM

The Unix cron expression "30 23 * * *" runs a task daily at 11:30 pm. Preview the next run times in your timezone, read the plain-English translation, and copy ready-to-paste snippets for crontab, Node.js, GitHub Actions, and AWS EventBridge.

Live playground

  • Min30
  • Hour23
  • DOM*
  • Month*
  • DOW*

At 11:30 PM

Unix cron · evaluated in UTC

24-hour view

Hover a highlighted hour for precise timestamps. Showing the next 50 executions.

Upcoming runs

Timezone

Runs are simulated in the selected IANA timezone. Auto-detected from your browser on first load.

Field breakdown

How each field of 30 23 * * * is interpreted in the Unix cron format.

Field breakdown of 30 23 * * *
FieldValueAllowedStatus
Minute300-59Valid
Hour230-23Valid
Day of Month*1-31Valid
Month*1-12 or JAN-DECValid
Day of Week*0-7 or SUN-SAT (0 and 7 = SUN)Valid

Use “30 23 * * *” in real code

Copy-paste configurations for the most common schedulers, converted to each platform’s dialect where needed.

import cron from 'node-cron';

cron.schedule('30 23 * * *', () => {
  console.log('Running task...');
});

Running “30 23 * * *” in production

23:30: the day-close slot that beats the midnight race

30 23 * * * fires at half past eleven each night — the traditional slot for jobs that must complete before the date changes: accounting day-close routines that stamp ledgers with today's date, daily counters and quotas that reset at the boundary, 'end of day' summaries whose recipients expect them dated today, and pre-midnight data snapshots that the midnight batch will consume. The half-hour slot exists to buy completion headroom: a job at 23:59:59 races the boundary, and one that runs twenty minutes crosses midnight mid-execution, producing output stamped with two different dates and sometimes two different days' semantics.

The 23:30 choice is therefore an SLA statement: this job must finish inside the day, so it starts with a 29-minute margin. Jobs on this slot should enforce their own deadline (stop-and-alert at 23:55 rather than spill into tomorrow), because the failure mode — spilling — corrupts the boundary for every consumer that trusts date keys. It composes with the nightly cascade cleanly: 23:30 closes the day, 00:00 starts the batch on the closed day, 00:30 backups verify it. Three slots, no overlap, no ambiguity about which day any output belongs to.

Boundary mechanics: date stamps, UTC servers, and the 23:59 mistake

The reason the slot matters at all is that date keys change at midnight, and consumers join on them. A nightly export that starts 23:55 and finishes 00:10 writes rows whose created_at straddles two dates; a billing routine that reads 'today' before midnight and writes after it books the day twice or not at all. The robust pattern decouples the schedule from the boundary semantics: capture the intended business date at job start (the day being closed), stamp all output with it, and never call 'today' after midnight inside the job. UTC servers keep the wall clock stable, which removes the DST wrinkle — 23:30 local schedules in DST zones sit far from the 1-3 AM transitions and are unaffected twice a year anyway.

Why not 23:59 or 23:45? Because margin is the entire product. At 23:59 any runtime over one second crosses the boundary; at 23:45 a 20-minute job still fits with ten minutes to spare; at 23:30 a job may take half an hour and still land inside the day. Teams that inherited 23:59 schedules and later 'randomly' see date-mixed output are observing the margin running out as data grows. The fix is always the same: move the start earlier, keep the deadline, and alert when the job's runtime approaches the margin rather than when it first crosses the line.

Frequently asked questions

What does the cron expression "30 23 * * *" mean?

"30 23 * * *" is a Unix cron expression that means: At 11:30 PM. It contains 5 fields — Minute (30), Hour (23), Day of Month (*), Month (*), Day of Week (*) — and works in any scheduler that accepts the Unix cron format.

How does "30 23 * * *" behave in UTC versus local time?

The classic cron daemon interprets every field in the machine's local timezone (from /etc/timezone or the TZ environment variable). If the server runs in UTC the schedule fires in UTC; otherwise shift the hours accordingly. Modern cronie also supports CRON_TZ to pin a single job to UTC.

What happens if the machine is offline when "30 23 * * *" is due?

Classic cron does not catch up missed runs: if the server is down at the fire time, that execution is skipped until the next match. Guard the command with an idempotency check, or use anacron or a scheduler with missed-run handling when catch-up behavior matters.

Why schedule at 11:30 PM instead of 11:59 PM?

Completion margin. A 23:59 fire has sixty seconds before the date changes, so any runtime over a minute produces output stamped across two dates — the classic cause of 'random' date-mixing in daily exports and day-close routines. 23:30 grants a 29-minute margin, and the job can enforce a hard deadline at 23:55 so it never spills into tomorrow. The pattern: close the day at 23:30, let the midnight batch operate on the closed, stamped day.

What is the difference between a 23:30 day-close job and a midnight job?

Sequencing, not duplication. The 23:30 job finalizes today — closing entries, stamping summaries, snapshotting state — and must finish inside the day. The 00:00 job then starts tomorrow's work on a day that is closed and immutable: backups of the finalized data, retention sweeps, ETL into the warehouse. Running both at midnight creates a race between a job still writing today's data and a job reading it; the half-hour gap removes the race by construction.

About the “30 23 * * *” schedule

30 23 * * * is the Unix cron way to say “At 11:30 PM”. The simulator above evaluates it entirely in your browser — the timeline, the next-run table, and the timezone switcher all run client-side, so you can paste production schedules without them ever leaving your machine.

Every page in this directory follows the same structure: a plain-English translation, a per-field breakdown, platform-specific snippets, and a timezone-aware simulator. Move between the related intervals below to compare dialects, and validate one final time in the simulator with your own timezone before shipping.

Adjacent intervals and the same schedules expressed for other platforms.