method

jd

v1_9_3_125 - Show latest stable - Class: Date
jd(p1 = v1, p2 = v2)
public

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

For 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.