convert

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.

Since Kotlin

1.6