Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Date#julian?

d.julian? → bool

Returns true if the date is before the day of calendar reform.

Example
Date.new(1582,10,15).julian?             #=> false
(Date.new(1582,10,15) - 1).julian?       #=> true
See also #julian #ld #jisx0301 #leap? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0