kotlin-stdlib / kotlin.time / Duration / toDouble toDouble Common JVM JS Native 1.0 fun toDouble(unit: DurationUnit): Double Returns the value of this duration expressed as a Double number of the specified unit.