Skip to content

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

class method

Date.jd

Date.jd([jd=0[, start=Date::ITALY]]) → date

Creates a date object denoting the given chronological Julian day number.

Example
Date.jd(2451944)          #=> #<Date: 2001-02-03 ...>
Date.jd(2451945)          #=> #<Date: 2001-02-04 ...>
Date.jd(0)                #=> #<Date: -4712-01-01 ...>

See also ::new.

See also #jd .iso8601 ._jisx0301 ._iso8601 also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0