method

hours

v6.1.7.7 - Show latest stable - Class: Numeric
hours()
public

Returns a Duration instance matching the number of hours provided.

2.hours # => 2 hours