toIso8601

fun toIso8601(timeInterval: TimeInterval, precision: Double? = definedExternally): String(source)

Creates an ISO8601 representation of the provided interval.

Return

The ISO8601 representation of the provided interval.

Parameters

timeInterval

The interval to be converted.

precision

The number of fractional digits used to represent the seconds component. By default, the most precise representation is used.

See also