Cron expression for once a year on January 1
Runs the job at midnight on January 1, once a year.
0 0 1 1 *
At 12:00 AM, on day 1 of the month, only in January
Field by field
- Minute · 0–59
0only at minute 0 - Hour · 0–23
0only at 00:00 - Day of month · 1–31
1only on day 1 - Month · 1–12 or JAN–DEC
1only in January - Day of week · 0–7 or SUN–SAT
*every day of the week
Next runs in your local time
Where this cron expression shows up
- Year-end rollovers
- Annual archive snapshots
- Resetting quotas that last twelve months
Common variations
-
Quarterly, on the first day of each quarter
0 0 1 1,4,7,10 * At 12:00 AM, on day 1 of the month, only in January, April, July, and October
-
Twice a year, January 1 and July 1
0 0 1 1,7 * At 12:00 AM, on day 1 of the month, only in January and July
Ranges, steps, and names are spelled out on the cheat sheet.