Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.