method

hours

v5.2.3 - Show latest stable - Class: Numeric
hours()
public

Returns a Duration instance matching the number of hours provided.

2.hours # => 2 hours