utils/leap_year library
Metonic cycle leap-year calculation for the Santali calendar.
The Santali calendar follows the 19-year Metonic cycle: leap years occur at positions 1, 4, 7, 9, 12, 15, and 18 within each cycle starting from metonicCycleStart.
Constants
- metonicCycleStart → const int
- First Gregorian year of the current Metonic cycle.
-
metonicLeapPositions
→ const Set<
int> - Positions within the 19-year Metonic cycle that are leap years.
Functions
-
isLeapYear(
int year) → bool -
Returns whether
yearis a Santali leap year.