59 23 * * * Every day at 23:59 daily The cron expression 59 23 * * * runs a job once per day at exactly 23:59, every day of the month, every month, every day of the week. The minute field is 59 and the hour field is 23; the three remaining wildcards leave day-of-month, month and day-of-week unrestricted, which is what makes the schedule daily rather than weekly or monthly. Daily fixed-time slots are the backbone of operational cron: nightly backups, database dumps, report emails, cleanup sweeps and off-peak batch windows. Choosing 23:59 specifically is usually a trade-off between user traffic (pick the quietest hour for your audience's time zone) and upstream dependencies (pick a time after source systems have finished their own nightly work). Two classic pitfalls apply to every daily schedule: daylight saving transitions can shift, duplicate or skip the wall-clock slot in local-time zones, and a job that runs longer than 24 hours will overlap its next invocation unless you serialize it with a lock. Below are the field breakdown, the next five computed run times, and platform-specific equivalents for Quartz, Spring, Kubernetes and EventBridge.
Field-by-field breakdown
| Field | Value | Meaning |
|---|---|---|
| minute | 59 | only at minute 59 |
| hour | 23 | only at hour 23 |
| day-of-month | * | every day-of-month (wildcard, no restriction) |
| month | * | every month (wildcard, no restriction) |
| day-of-week | * | every day-of-week (wildcard, no restriction) |
Next 5 run times (UTC)
Computed at build time; cross-check against your server's time zone before deploying.
2026-12-05 23:59 UTC2026-12-06 23:59 UTC2026-12-07 23:59 UTC2026-12-08 23:59 UTC2026-12-09 23:59 UTC
When to use this schedule
- Nightly database dumps and off-site backup uploads inside a low-traffic maintenance window.
- Daily digest emails and analytics rollups that must reflect a complete previous calendar day.
- Cleanup sweeps: expired sessions, orphaned uploads, stale cache entries and old temporary files.
- Rebuilding search indexes or materialized views once per day after source systems finish their own nightly work.
Equivalent syntax
The same schedule expressed for popular schedulers and platforms:
59 23 * * * /usr/local/bin/job.sh # Every day at 23:59 0 59 23 * * ? # Quartz (Java): 6-7 fields, leading seconds, '?' when day-of-week is set 0 59 23 * * * # Spring @Scheduled: 6 fields, leading seconds, day names accepted 59 23 * * * # Kubernetes CronJob schedule field: standard 5-field syntax cron(59 23 * * ? *) # AWS EventBridge: 6 fields incl. year, '?' required in one day field Caveats & gotchas
- Cron evaluates schedules in the server's local time zone; set CRON_TZ (cronie) or TZ (containers) explicitly on shared or distributed infrastructure.
- Daylight saving transitions can shift, duplicate or skip wall-clock slots in local-time zones; scheduling in UTC removes the ambiguity.
- When both day-of-month and day-of-week are restricted, standard cron ORs them; keep one of the two as '*' unless you want that behavior.
Verify your schedule
After installing the schedule, verify it end to end instead of trusting the crontab line. Run 'crontab -l' to confirm the entry survived editing, then execute the command manually with the same user and environment to catch PATH and permission problems — cron runs with a minimal environment, so absolute paths and explicit SHELL/PATH declarations prevent the classic 'works in my terminal, fails in cron' bug. Watch the daemon log ('grep CRON /var/log/syslog' on Debian/Ubuntu, 'journalctl -u cron' or '-u crond' on systemd hosts) to confirm the trigger fires at the expected times, and redirect the job's own output to a log file with 2>&1 so failures are not swallowed by mail. Finally, cross-check the next run times listed on this page against your server's time zone before declaring the schedule correct.
Frequently asked questions
What is the cron expression for every day at 23:59?
59 23 * * * — minute 59, hour 23, and wildcards for day-of-month, month and day-of-week. It fires 365 (or 366) times a year.
Will 59 23 * * * run at 23:59 UTC?
Only if the server's time zone is UTC. Cron uses local time by default; check 'timedatectl' or the container's TZ variable, and set CRON_TZ=UTC if you want UTC semantics.
What happens if the daily job is still running at the next trigger?
Cron starts a second instance regardless. Wrap the command in flock -n or a PID-file guard so overlapping runs exit instead of corrupting state.
Try the Cron Parser
Decode cron schedules and preview the next run times.