このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
gregorian_leap?(year) -> bool
leap?(year) -> bool
グレゴリオ暦の閏年なら真を返します。