seconds

Deprecated

Use Duration.seconds() function instead.

Replace with

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

Returns a Duration equal to this Int number of seconds.

Since Kotlin

1.3

Deprecated

Use Duration.seconds() function instead.

Replace with

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

Returns a Duration equal to this Long number of seconds.

Since Kotlin

1.3

Deprecated

Use Duration.seconds() function instead.

Replace with

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

Returns a Duration equal to this Double number of seconds.

Since Kotlin

1.3

Throws

if this Double value is NaN.