instance method
incorporate_utc_offset
Ruby on Rails 8.1.2
Since v6.1.7.10 PrivateSignature
incorporate_utc_offset(time, offset)
No documentation comment.
Parameters
-
timereq -
offsetreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 564
def incorporate_utc_offset(time, offset)
if offset.zero?
time
elsif time.kind_of?(Date)
time + Rational(offset, SECONDS_PER_DAY)
else
time + offset
end
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 564
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone