milliseconds

Common
JVM
JS
Native
1.3
@ExperimentalTime val Int.milliseconds: Duration
Deprecated: Use Duration.milliseconds() function instead.

Returns a Duration equal to this Int number of milliseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Long.milliseconds: Duration
Deprecated: Use Duration.milliseconds() function instead.

Returns a Duration equal to this Long number of milliseconds.

Common
JVM
JS
Native
1.3
@ExperimentalTime val Double.milliseconds: Duration
Deprecated: Use Duration.milliseconds() function instead.

Returns a Duration equal to this Double number of milliseconds.

Exceptions

IllegalArgumentException - if this Double value is NaN.