Skip to content
class method

Date.julian_leap?

(::Integer year) -> bool
Date.julian_leap?(year) → true or false

Returns true if the given year is a leap year in the proleptic Julian calendar, false otherwise:

Example
Date.julian_leap?(1900) # => true
Date.julian_leap?(1901) # => false

Related: Date.gregorian_leap?.

See also .json_create .leap? .jisx0301 .new also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0