IntlGregorianCalendar::isLeapYear

Determine if the given year is a leap year

Description

Object-oriented style

public bool IntlGregorianCalendar::isLeapYear(int $year)

Procedural style

bool intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year)

Determines whether the given year is a leap year in the Gregorian calendar.

Parameters

calendar
An IntlGregorianCalendar instance.
year
The year to check.

Return Values

Returns true for leap years, false otherwise and on failure.