IntlGregorianCalendar::isLeapYear

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

IntlGregorianCalendar::isLeapYear — 指定された年がうるう年かを判定する

説明

オブジェクト指向型

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

手続き型

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

指定された year がグレゴリオ暦のうるう年かどうかを判定します。

パラメータ

calendar

IntlGregorianCalendar クラスのインスタンス。

year

判定する年。

戻り値

うるう年の場合、true を返します。 そうでない場合や、失敗した場合は false を返します。

+add a note

User Contributed Notes

There are no user contributed notes for this page.