parsePeriod

fun parsePeriod(text: String): Period

Parse a time period allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P'.

Return

Time period parsed from the supplied text.

Parameters

text

Text to be parsed to a time period.