toMillis

fun toMillis(duration: Long): Long

Equivalent to .convert.

Return

the converted duration, or Long.MIN_VALUE if conversion would negatively overflow, or Long.MAX_VALUE if it would positively overflow.

Parameters

duration

the duration