Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/ruote/util/time.rb

Overview

Ruby 1.9.1 has it, but not 1.8.x, so adding it…

Instance Method Summary collapse

Instance Method Details

#to_timeObject


33
34
35
36
37
# File 'lib/ruote/util/time.rb', line 33

def to_time
  new_offset(0).instance_eval {
    Time.utc(year, mon, mday, hour, min, sec + sec_fraction)
  }.getlocal
end