Flowdock
method

jd_to_ordinal

Importance_1
v1_8_6_287 - Show latest stable - 0 notes - Class: Date
jd_to_ordinal(jd, sg=GREGORIAN) public

Convert a Julian Day Number to an Ordinal <a href="/ruby/Date">Date</a>.

jd is the Julian Day Number to convert. sg specifies the Day of Calendar Reform.

Returns the corresponding Ordinal <a href="/ruby/Date">Date</a> as [year, day_of_year]

Show source
Register or log in to add new notes.