Method: Date.jd
- Defined in:
- lib/date.rb
.jd(jd = 0, sg = ITALY) ⇒ Object
Create a new Date object from a Julian Day Number.
jd is the Julian Day Number; if not specified, it defaults to 0. sg specifies the Day of Calendar Reform.
715 716 717 718 |
# File 'lib/date.rb', line 715 def self.jd(jd=0, sg=ITALY) jd = valid_jd?(jd, sg) new!(jd_to_ajd(jd, 0, 0), 0, sg) end |