Skip to content
Unix cron100% Client-Side

Cron Expression for Yearly on January 1st

0 0 1 1 *At 12:00 AM, on day 1 of the month, only in January

The Unix cron expression "0 0 1 1 *" runs a task yearly on january 1st. 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

  • Min0
  • Hour0
  • DOM1
  • Month1
  • DOW*

At 12:00 AM, on day 1 of the month, only in January

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 0 0 1 1 * is interpreted in the Unix cron format.

Field breakdown of 0 0 1 1 *
FieldValueAllowedStatus
Minute00-59Valid
Hour00-23Valid
Day of Month11-31Valid
Month11-12 or JAN-DECValid
Day of Week*0-7 or SUN-SAT (0 and 7 = SUN)Valid

Use “0 0 1 1 *” 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('0 0 1 1 *', () => {
  console.log('Running task...');
});

Running “0 0 1 1 *” in production

0 0 1 1 *: the annual boundary and what belongs on it

0 0 1 1 * fires once a year, at midnight on January 1st — minute 0, hour 0, day-of-month 1, month 1, any weekday — the most scoped schedule five-field cron can express. Its residents are the year-boundary jobs: archive-then-prune (move the completed year's data to cold storage and enforce retention windows against it), year-keyed rollovers (invoice sequences, document number series, fiscal tables, partition creation for the new year's data), 'as of December 31, 23:59:59' snapshots that freeze the year for reporting and audits, and the annual administrative cycle — access recertifications, domain and certificate inventories, insurance and license renewals — that compliance frameworks anchor to the calendar year.

The boundary race is the schedule's one structural hazard: midnight January 1st shares its instant with the nightly batch, the monthly jobs (0 0 1 * * fires the same second — it is a strict superset schedule), and every New Year's automated greeting job ever written. The annual job must not race the December jobs still finishing: either sequence it later (0 1 1 1 — 1 AM, after the nightly wave completes) or give it an explicit dependency on the year-close job's completion stamp. The deeper discipline is the same as month-end: capture the business year at start, stamp all output with it, and never compute 'this year' after midnight — the year being archived is the year that ended, not the one that began while the job ran.

Annual jobs in practice: verification, idempotency, and the fiscal mismatch

A yearly fire gives one attempt per failure mode, so the job's design budget should be spent on verification and recovery rather than scheduling cleverness: verify the archive (checksums, restore test) inside the same run, write a run ledger keyed on (job, year) before work begins so a re-run resumes or refuses rather than double-archives, and alert on success — a heartbeat that must advance annually — because a silently-missed annual job surfaces at the worst possible time (the audit, the restore, the renewal deadline). Dry-run first is the annual-cadence superpower: schedule a 0 0 25 12 * rehearsal a week early that exercises everything except the irreversible step.

The calendar-year assumption deserves the quarterly recipe's skepticism: fiscal years starting October (US federal), April (UK), July, or February (retail 4-4-5) move the real annual boundary, and 'yearly on January 1st' then fires at a nothing-special instant while the actual year-end passes unautomated. Encode your year: a fiscal year starting October 1 is 0 0 1 10 *; the fields carry any (day, month) pair. Moving targets are the genuine limit — Easter-anchored schedules, lunar new years, and 'first Monday after the first Wednesday' exist outside cron's grammar entirely and belong to job-side calendar computation or an external calendar service. The simulator above shows the next January 1sts and their weekdays — worth checking when the job's consumers are offices rather than machines.

Frequently asked questions

What does the cron expression "0 0 1 1 *" mean?

"0 0 1 1 *" is a Unix cron expression that means: At 12:00 AM, on day 1 of the month, only in January. It contains 5 fields — Minute (0), Hour (0), Day of Month (1), Month (1), Day of Week (*) — and works in any scheduler that accepts the Unix cron format.

How does "0 0 1 1 *" 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.

Can I combine "0 0 1 1 *" with holidays or blackout dates?

Standard cron has no holiday awareness. The common pattern is to keep the schedule as-is and guard the job: check a holiday calendar when the run starts and exit early on excluded days. That keeps the schedule declarative while your code owns the policy.

What does each field of 0 0 1 1 * mean?

Minute 0, hour 0 (so midnight at the start of the day), day-of-month 1, month 1 (January), day-of-week unconstrained — together: midnight on January 1st, once a year. The two day fields are the ones to check when reading it: position 3 is day-of-month (1 = the first), position 5 is day-of-week (1 = Monday) — the same '1' in each position means something different, which is why the field table above labels every position explicitly.

Can cron schedule a job for any date every year, like July 15th?

Yes — any fixed (day-of-month, month) pair works: 0 0 15 7 * fires at midnight every July 15th, and pairs like 0 9 1 10 (October 1st at 9 AM) encode fiscal-year starts. What cron cannot do is moving dates: Easter, lunar new year, or 'the third Thursday in November' have no fixed (day, month) and require job-side calendar computation or an external calendar API. Fixed civil dates are cron's home turf; floating dates belong in code.

About the “0 0 1 1 *” schedule

0 0 1 1 * is the Unix cron way to say “At 12:00 AM, on day 1 of the month, only in January”. 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.