parse

fun parse(input: String, locale: Locale): DateTimePeriod

Parse the provided string to a DateTimePeriod object, using the strings provided by the given Locale.