Skip to content
IP 19216811.blog
Cron Reference

Every Year

Runs once a year on January 1st at midnight.

Cron Expression

0 0 1 1 * Test in tool

At 12:00 AM, in January, on the 1st

Expression Breakdown

Minute Hour Day Month Weekday
0 0 1 1 *
0 0 1 1 any

Next 5 Scheduled Runs

  • Friday, January 1 2027 at 12:00 AM
  • Saturday, January 1 2028 at 12:00 AM
  • Monday, January 1 2029 at 12:00 AM
  • Tuesday, January 1 2030 at 12:00 AM
  • Wednesday, January 1 2031 at 12:00 AM

Times are relative to the server's local clock at page load.

Common Use Cases

  • Annual data archives
  • Year-end financial reports
  • License and subscription renewals

How to Install

Linux / macOS (crontab)

Run crontab -e and add this line:

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

Python (APScheduler / cron-style)

scheduler.add_job(my_func, 'cron',
    minute='0',
    hour='0',
    day='1',
    month='1',
    day_of_week='*')

GitHub Actions (schedule)

on:
  schedule:
    - cron: '0 0 1 1 *'

Frequently Asked Questions

What does 0 0 1 1 * mean?
Midnight on January 1st — once per year.
Is @yearly the same as 0 0 1 1 *?
Yes — @yearly (and @annually) are aliases for 0 0 1 1 * in most cron implementations.