Module | ActiveSupport::CoreExtensions::Numeric::Time |
In: |
lib/active_support/core_ext/numeric/time.rb
|
Enables the use of time calculations and declarations, like 45.minutes + 2.hours + 4.years.
If you need precise date calculations that doesn‘t just treat months as 30 days, then have a look at Time#advance.
Some of these methods are approximations, Ruby‘s core Date and Time should be used for precision date and time arithmetic