Method: DateTime#to_time
- Defined in:
- lib/fjords/cli/core.rb
#to_time ⇒ Object
9 10 11 12 |
# File 'lib/fjords/cli/core.rb', line 9 def to_time usec = (new_offset.sec_fraction * 60 * 60 * 24 * (10**6)).to_i Time.gm(new_offset.year, new_offset.month, new_offset.day, new_offset.hour, new_offset.min, new_offset.sec, usec) end |