Leave Duration.convert experimental KT-46784

This commit is contained in:
Ilya Gorbunov
2021-09-29 19:25:51 +03:00
committed by Space
parent 04d70162d2
commit c2af8b2a29
3 changed files with 3 additions and 0 deletions
@@ -57,6 +57,7 @@ public value class Duration internal constructor(private val rawValue: Long) : C
internal val NEG_INFINITE: Duration = durationOfMillis(-MAX_MILLIS)
/** Converts the given time duration [value] expressed in the specified [sourceUnit] into the specified [targetUnit]. */
@ExperimentalTime
public fun convert(value: Double, sourceUnit: DurationUnit, targetUnit: DurationUnit): Double =
convertDurationUnit(value, sourceUnit, targetUnit)