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