Determines whether a given Jalali (Persian) year is a leap year.
In the Jalali calendar, leap years occur in a repeating 33-year cycle. The leap years are those where the year modulo 33 equals one of: [1, 5, 9, 13, 17, 22, 26, 30].
The Jalali year to check.
true if the year is a leap year, otherwise false.
true
false
isLeapYear(1403); // falseisLeapYear(1404); // true Copy
isLeapYear(1403); // falseisLeapYear(1404); // true
Determines whether a given Jalali (Persian) year is a leap year.
In the Jalali calendar, leap years occur in a repeating 33-year cycle. The leap years are those where the year modulo 33 equals one of: [1, 5, 9, 13, 17, 22, 26, 30].