convertTo

open override fun convertTo(source: Duration): Long

Total forward conversion (S -> T). Override if the direction is supported; the non-overridden default throws with a direction-precise S -> T message.