Method: Time#to_date

Defined in:
lib/rubysl/date/date.rb

#to_dateObject



1788
1789
1790
1791
# File 'lib/rubysl/date/date.rb', line 1788

def to_date
  jd = Date.__send__(:civil_to_jd, year, mon, mday, Date::GREGORIAN)
  Date.new!(Date.__send__(:jd_to_ajd, jd, 0, 0), 0, Date::ITALY)
end