Companion

object Companion

Functions

Link copied to clipboard
fun parse(text: String): DateTimePeriod

Parses a ISO-8601 duration string as a DateTimePeriod. If the time components are absent or equal to zero, returns a DatePeriod.