convert

fun convert(value: Double, sourceUnit: DurationUnit, targetUnit: DurationUnit): Double

Converts the given time duration value expressed in the specified sourceUnit into the specified targetUnit.