instance method
advance
Ruby on Rails 4.2.9
Since v2.2.3Signature
advance(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 290
def advance(options)
# If we're advancing a value of variable length (i.e., years, weeks, months, days), advance from #time,
# otherwise advance from #utc, for accuracy when moving across DST boundaries
if options.values_at(:years, :weeks, :months, :days).any?
method_missing(:advance, options)
else
utc.advance(options).in_time_zone(time_zone)
end
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 290
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone