private Method

Time.to_date

def to_time() getlocal end

Source Code

# File date.rb, line 1595
def to_date
  jd = Date.civil_to_jd(year, mon, mday, Date::ITALY)
  Date.new!(Date.jd_to_ajd(jd, 0, 0), 0, Date::ITALY)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.