IntlGregorianCalendar::isLeapYear
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Determine if the given year is a leap year
Description
Oop
IntlGregorianCalendar::isLeapYear(int $year): bool
Procedural
intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): bool
Determines whether the given year is a leap year in the Gregorian calendar.
Parameters
calendarAn
IntlGregorianCalendarinstance.yearThe year to check.
Return Values
Returns true for leap years, false otherwise and on failure.