toTimeString

fun Long.toTimeString(trimLeadingZeroes: Boolean = true, trimTrailingZeros: Boolean = true): String

Convert this long value to a time string.

Parameters

trimLeadingZeroes

Trim all zero values before the first non-zero value.

trimTrailingZeros

Trim all zero values after the last non-zero value.