Skip to main content

hours

hours(value: Integer) : Duration

Obtains a Duration representing the given number of hours. For example, hours(3) returns a Duration that represents three hours. The value can be negative. For example, hours(-2) returns a Duration that represents negative two hours.

This function will raise an error if the absolute value of the input is greater than 2562047788015215.

See also

Functions

Types