milliseconds

Deprecated

Warning since 1.5

Error since 1.8

Hidden since 1.9

Use 'Int.milliseconds' extension property from Duration.Companion instead.

Replace with

import kotlin.time.Duration.Companion.milliseconds
this.milliseconds

Returns a Duration equal to this Int number of milliseconds.

Since Kotlin

1.3

Deprecated

Warning since 1.5

Error since 1.8

Hidden since 1.9

Use 'Long.milliseconds' extension property from Duration.Companion instead.

Replace with

import kotlin.time.Duration.Companion.milliseconds
this.milliseconds

Returns a Duration equal to this Long number of milliseconds.

Since Kotlin

1.3

Deprecated

Warning since 1.5

Error since 1.8

Hidden since 1.9

Use 'Double.milliseconds' extension property from Duration.Companion instead.

Replace with

import kotlin.time.Duration.Companion.milliseconds
this.milliseconds

Returns a Duration equal to this Double number of milliseconds.

Since Kotlin

1.3

Throws

if this Double value is NaN.