parseDuration

fun parseDuration(text: String): Duration

Parse a time duration allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P', however, the 'T' is still mandatory to separate date and time durations.

Return

Time duration parsed from the supplied text.

Parameters

text

Text to be parsed to a time duration.