method

in_hours

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

Returns the amount of hours a duration covers as a float

1.day.in_hours # => 24.0
Show source
Register or log in to add new notes.