# File lib/active_support/core_ext/time/calculations.rb, line 50 def advance(options) d = ::Date.new(year + (options.delete(:years) || 0), month, day) d = d >> options.delete(:months) if options[:months] d = d + options.delete(:days) if options[:days] change(options.merge(:year => d.year, :month => d.month, :mday => d.day)) end