hours

Deprecated

Use Duration.hours() function instead.

Replace with

import kotlin.time.Duration
Duration.hours(this)

Returns a Duration equal to this Int number of hours.

Since Kotlin

1.3

Deprecated

Use Duration.hours() function instead.

Replace with

import kotlin.time.Duration
Duration.hours(this)

Returns a Duration equal to this Long number of hours.

Since Kotlin

1.3

Deprecated

Use Duration.hours() function instead.

Replace with

import kotlin.time.Duration
Duration.hours(this)

Returns a Duration equal to this Double number of hours.

Since Kotlin

1.3

Throws

if this Double value is NaN.