The Jalaali calendar is a solar calendar with an irregular leap year cycle,
designed to align closely with the vernal equinox. Unlike the Gregorian
calendar, which follows a fixed leap year rule, the Jalaali leap years are
determined by a more complex astronomical system:
- A typical cycle lasts 33 years, with leap years occurring in years that
leave a remainder of 1, 5, 9, 13, 17, 22, 26, or 30 when divided by 33.
- The cycle is occasionally disrupted by "break years," which adjust for
small differences between the astronomical year and the calculated calendar.
- This function follows the leap year calculations and algorithm established by
Kazimierz M. Borkowski (1996), who analysed equinox timings from AD 550 to
3800.