Class: DateTime
Instance Method Summary collapse
Methods inherited from Date
Instance Method Details
#to_date ⇒ Object
48 |
# File 'lib/supplement/date.rb', line 48 def to_date ; Date.new! Date.jd_to_ajd(jd,0,0), 0, @sg ; end |
#to_datetime ⇒ Object
49 |
# File 'lib/supplement/date.rb', line 49 def to_datetime ; self ; end |
#to_time ⇒ Object
43 44 45 46 47 |
# 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 |