toLongMilliseconds

Deprecated

Warning since 1.5

Error since 1.8

Use inWholeMilliseconds property instead.

Replace with

this.inWholeMilliseconds

Returns the value of this duration expressed as a Long number of milliseconds.

The value is coerced to the range of Long type, if it doesn't fit in that range, see the conversion Double.toLong for details.

The range of durations that can be expressed as a Long number of milliseconds is approximately ±292 million years.

Since Kotlin

1.6