parse

open fun parse(value: String): Period

Parse the given value to a Period.

Return

a period

Parameters

value

the value to parse


abstract fun parse(value: String, unit: ChronoUnit): Period

Parse the given value to a period.

Return

a period

Parameters

value

the value to parse

unit

the period unit to use if the value doesn't specify one (null will default to d)