method

gregorian_leap?

v1_9_2_180 - Show latest stable - Class: Date
gregorian_leap?(y)
public

Is a year a leap year in the Gregorian calendar?

All years divisible by 4 are leap years in the Gregorian calendar, except for years divisible by 100 and not by 400.