OpsPane

0 0 1 1 * runs a cron job once a year, at 00:00 on 1 January. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd, or pick another date.

crontab expression

0 0 1 1 *

In plain English

At 00:00 on day 1 of the month in January.

1 run a year (counted over 2026, UTC)

With 0 0 for the time, 1 for the day and 1 for the month, the job runs at 00:00 on 1 January and at no other time. crontab's @yearly and @annually mean the same.

Field by field

Minute01/60

:00

Hour01/24

00:00

Day of month11/31

Day 1

Month11/12

January

Day of week*7/7

Every day of the week

Day matchAND

Day of month decides; day of week is *.

The same schedule on every platform

Each expression below is the same schedule written for that platform, checked run by run against the crontab version.

PlatformExpressionOpen in tool
crontab0 0 1 1 *Open in the crontab tool
Quartz0 0 0 1 1 ?Open in the Quartz tool
AWS EventBridgecron(0 0 1 1 ? *)Open in the AWS EventBridge tool
GitHub Actions0 0 1 1 *Open in the GitHub Actions tool
Kubernetes0 0 1 1 *Open in the Kubernetes tool
systemd*-01-01 00:00:00Open in the systemd tool

Variations

ExpressionRunsOpen in explainer
0 9 1 1 *At 09:00 on day 1 of the month in January.Open 0 9 1 1 * in the explainer
0 0 1 7 *At 00:00 on day 1 of the month in July.Open 0 0 1 7 * in the explainer
0 0 31 12 *At 00:00 on day 31 of the month in December.Open 0 0 31 12 * in the explainer
0 0 1 1,7 *At 00:00 on day 1 of the month in January and July.Open 0 0 1 1,7 * in the explainer
0 0 29 2 *At 00:00 on day 29 of the month in February.Open 0 0 29 2 * in the explainer

Watch out for

New Year's midnight is UTC on most platforms

GitHub Actions and AWS EventBridge cron fire at 00:00 UTC, which is still 31 December in the Americas. Set spec.timeZone on Kubernetes, or shift the hour, to match local New Year.

A yearly job is easy to forget

By the time it runs again, credentials, paths and owners may have changed. Keep a way to trigger it by hand, and check the next run date in the explainer.

0 0 29 2 * runs only in leap years

29 February exists one year in four, so a job pinned to it can wait almost four years between runs. Use 0 0 1 3 * (1 March) for a yearly run just after February.

FAQ

What is the cron expression for once a year?

0 0 1 1 *. It runs at 00:00 on 1 January every year.

Is @yearly the same as 0 0 1 1 *?

Yes, in crontab @yearly and @annually both mean 00:00 on 1 January. Most other schedulers do not accept them, so write the fields out.

How do I run once a year on a specific date?

Put the day in the third field and the month in the fourth: 0 9 15 6 * runs at 09:00 on 15 June.

Can a cron job run only in a specific year?

Not in five-field cron. AWS EventBridge has a year field, for example cron(0 0 1 1 ? 2027), and Quartz has an optional seventh year field.