Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
seconds
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Int.seconds: Duration
(source)
Deprecated: Use 'Int.seconds' extension property from Duration.Companion instead.
Returns a Duration equal to this Int number of seconds.
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Long.seconds: Duration
(source)
Deprecated: Use 'Long.seconds' extension property from Duration.Companion instead.
@ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8", "1.9") val Double.seconds: Duration
(source)
Deprecated: Use 'Double.seconds' extension property from Duration.Companion instead.
Returns a Duration equal to this Double number of seconds.
Exceptions
IllegalArgumentException
- if this Double value is NaN
.