convert
@ExperimentalTime fun convert(
value: Double,
sourceUnit: DurationUnit,
targetUnit: DurationUnit
): Double
(source)
Converts the given time duration value expressed in the specified sourceUnit into the specified targetUnit.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
@ExperimentalTime fun convert(
value: Double,
sourceUnit: DurationUnit,
targetUnit: DurationUnit
): Double
Converts the given time duration value expressed in the specified sourceUnit into the specified targetUnit.