Method: IceCube::TimeUtil::TimeWrapper#to_time
- Defined in:
- lib/ice_cube/time_util.rb
#to_time ⇒ Object
Get the wrapped time back in its original zone & format
279 280 281 282 283 |
# File 'lib/ice_cube/time_util.rb', line 279 def to_time return @time unless @dst_adjust parts = @time.year, @time.month, @time.day, @time.hour, @time.min, @time.sec + @time.subsec TimeUtil.build_in_zone(parts, @base) end |