method

in_months

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveSupport::Duration
in_months() public

Returns the amount of months a duration covers as a float

9.weeks.in_months # => 2.07
Show source
Register or log in to add new notes.