hours

val Int.hours: Duration

Returns a Duration equal to this Int number of hours.

Since Kotlin

1.3

val Long.hours: Duration

Returns a Duration equal to this Long number of hours.

Since Kotlin

1.3

val Double.hours: Duration

Returns a Duration equal to this Double number of hours.

Since Kotlin

1.3

Throws

if this Double value is NaN.