instance method
incorporate_utc_offset
Ruby on Rails 7.1.6
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 549
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 549
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone