method

advance

v5.1.7 - Show latest stable - Class: DateTime
advance(options)
public

Uses Date to provide precise Time calculations for years, months, and days. The options parameter takes a hash with any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.