Flowdock
method

leap?

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Date
leap?(p1) public

Returns true if the given year is a leap year of the proleptic Gregorian calendar.

For example:

Date.gregorian_leap?(1900)        #=> false
Date.gregorian_leap?(2000)        #=> true
Show source
Register or log in to add new notes.