method

in_years

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

Returns the amount of years a duration covers as a float

30.days.in_years # => 0.082
Show source
Register or log in to add new notes.