class method
Date.julian_leap?
(::Integer year) -> bool
Date.julian_leap?(year) → true or false
ext/date/date_core.c
View on GitHub ↗
static VALUE
date_s_julian_leap_p(VALUE klass, VALUE y)
{
VALUE nth;
int ry;
check_numeric(y, "year");
decode_year(y, +1, &nth, &ry);
return f_boolcast(c_julian_leap_p(ry));
}
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?.