Free tools & games for everyone
Free · No sign-up · No accounts
Design a leap-year rule and test it: mean year length, seconds out per year, years until a day of drift, weekday cycles, Julian, Gregorian and more.
| Tab | Move between the boxes |
|---|---|
| Enter | Test the calendar |
A calendar year must be a whole number of days, but the seasons repeat every 365.24219 days or so (the mean tropical year). Leap years add a day now and then so that, on average, the calendar keeps pace. The question every calendar answers is which years should be leap years.
The designer counts the leap years over one full cycle of your rule to get the exact mean year, then compares it with the year you choose. The tropical year itself slowly gets shorter, by about half a second per century; the designer keeps it fixed, which is fine for comparing rules. The 33-year preset spreads the leap years evenly, the idea behind some solar calendars, without being a copy of any official one.
The tests compare every mean year, error and leap-year list with a separately written Python version, including the Gregorian rule’s 97 leap years in 400.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product