method
transfer_time_values_to_utc_constructor
transfer_time_values_to_utc_constructor(time)
private
Hide source
# File activesupport/lib/active_support/time_with_zone.rb, line 570 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