class DateTime

Public Instance Methods

to_date() click to toggle source
# File lib/supplement/date.rb, line 48
def to_date     ; Date.new! Date.jd_to_ajd(jd,0,0), 0, @sg ; end
to_datetime() click to toggle source
# File lib/supplement/date.rb, line 49
def to_datetime ; self ; end
to_time() click to toggle source
# File lib/supplement/date.rb, line 43
def to_time
  (new_offset 0).instance_eval do
    Time.utc year, mon, mday, hour, min, sec + sec_fraction
  end.getlocal
end