method
transfer_time_values_to_utc_constructor
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
transfer_time_values_to_utc_constructor(time)private
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 583
def transfer_time_values_to_utc_constructor(time)
# avoid creating another Time object if possible
return time if time.instance_of?(::Time) && time.utc?
::Time.utc(time.year, time.month, time.day, time.hour, time.min, time.sec + time.subsec)
end