IntlGregorianCalendar::isLeapYear
PHP Manual
PHP Manual»IntlGregorianCalendar»IntlGregorianCalendar::isLeapYear

IntlGregorianCalendar::isLeapYear

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

IntlGregorianCalendar::isLeapYear — Determine if the given year is a leap year

Açıklama

Nesne yönelimli kullanım

public function IntlGregorianCalendar::isLeapYear(int $year): bool

Yordamsal kullanım

function intlgregcal_is_leap_year(IntlGregorianCalendar $calendar, int $year): bool

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

Bağımsız Değişkenler

calendar

An IntlGregorianCalendar instance.

year

The year to check.

Dönen Değerler

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

To Top