toLongMilliseconds

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@ExperimentalTime fun toLongMilliseconds(): Long
Deprecated: Use inWholeMilliseconds property instead.

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.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/-duration/to-long-milliseconds.html