parseIsoStringOrNull

Parses a string that represents a duration in restricted ISO-8601 composite representation and returns the parsed Duration value or null if the string doesn't represent a duration in the format acceptable by parseIsoString.

Since Kotlin

1.6

Samples