Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/skyper/object.rb
Instance Method Summary collapse
Instance Method Details
#to_datetime ⇒ Object
4 5 6 7 8 |
# File 'lib/skyper/object.rb', line 4 def to_datetime seconds = sec + Rational(usec, 10**6) offset = Rational(utc_offset, 60*60*24) DateTime.new(year, month, day, hour, min, seconds, offset) end |