Skip to content

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

class method

Date.valid_jd?

Date.valid_jd?(jd, start = Date::ITALY) → true

Implemented for compatibility; returns true unless jd is invalid (i.e., not a Numeric).

Example
Date.valid_jd?(2451944) # => true

See argument start.

Related: Date.jd.