hours method

Duration hours([
  1. int value = 0
])

Returns a duration in hours.

print(5.hours()); // Output: 5:00:00.000000

Implementation

Duration hours([int value = 0]) => validate(value).hours();