Search tools

Cron expression for every year

0 0 1 1 * runs once a year at midnight on January 1. Most cron implementations also accept the @yearly or @annually macro.

Runs entirely in your browser. Nothing you paste is sent to our server, stored or logged.

0 0 1 1 *

When it runs next

What it means

Fixing minute to 0, hour to 0, day of month to 1 and month to 1 leaves only a single matching timestamp per calendar year: 00:00 on New Year's Day.

Annual cron entries work for tax-year rollovers, yearly audit archives and creating partitioned tables ahead of time. Because a failure on January 1 goes unnoticed for twelve months if unmonitored, log output to a persistent alert or check dead-man's-switch monitoring.

Common variations

ExpressionRuns
0 6 1 1 *January 1 at 06:00 instead of midnight
0 0 1 7 *Mid-year fiscal rollover on July 1
0 0 1 * *Every month instead of once a year

As a crontab line

Add the command you want to run after the five fields, then save it with crontab -e:

0 0 1 1 * /path/to/script.sh

Open it in the cron expression generator