hours method

Duration hours()

Returns a Duration representing hours.

Example:

Duration duration = 5.hours();
print(duration); // 5:00:00.000000

Implementation

Duration hours() => Duration(hours: this);