instance method
incorporate_utc_offset
Ruby on Rails 6.1.7.10
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 543
def incorporate_utc_offset(time, offset)
if 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 543
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone