parseIsoString

Common
JVM
JS
Native
1.5
fun parseIsoString(value: String): Duration
(source)

Parses a string that represents a duration in ISO-8601 format and returns the parsed Duration value.

Exceptions

IllegalArgumentException - if the string doesn't represent a duration in ISO-8601 format.