hours

Common
JVM
JS
Native
1.3
@ExperimentalTime val Int.hours: Duration
Deprecated: Use Duration.hours() function instead.

Returns a Duration equal to this Int number of hours.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Long.hours: Duration
Deprecated: Use Duration.hours() function instead.

Returns a Duration equal to this Long number of hours.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Double.hours: Duration
Deprecated: Use Duration.hours() function instead.

Returns a Duration equal to this Double number of hours.

Exceptions

IllegalArgumentException - if this Double value is NaN.