IntlGregorianCalendar::isLeapYear

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

IntlGregorianCalendar::isLeapYearDetermine if the given year is a leap year

Descrizione

Stile orientato agli oggetti

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

Stile procedurale

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

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

Elenco dei parametri

calendar

An IntlGregorianCalendar instance.

year

The year to check.

Valori restituiti

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

add a note

User Contributed Notes

There are no user contributed notes for this page.