seconds
Deprecated
Warning since 1.5
Use 'Int.seconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.seconds
Content copied to clipboard
this.seconds
Content copied to clipboard
Returns a Duration equal to this Int number of seconds.
Since Kotlin
1.3Deprecated
Warning since 1.5
Use 'Long.seconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.seconds
Content copied to clipboard
this.seconds
Content copied to clipboard
Returns a Duration equal to this Long number of seconds.
Since Kotlin
1.3Deprecated
Warning since 1.5
Use 'Double.seconds' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.seconds
Content copied to clipboard
this.seconds
Content copied to clipboard
Returns a Duration equal to this Double number of seconds.
Since Kotlin
1.3Throws
if this Double value is NaN
.