ordinal(y=-4712, d=1, sg=ITALY) public

Create a new Date object from an Ordinal <a href="/ruby/Date">Date,</a> specified by year y and day-of-year d. d can be negative, in which it counts backwards from the end of the year. No year wraparound is performed, however. An invalid value for d results in an ArgumentError being raised.

y defaults to -4712, and d to 1; this is Julian Day Number day 0.

sg specifies the Day of Calendar Reform.

Show source
Register or log in to add new notes.