toDuration

fun DateTimePeriod.toDuration(timezone: TimeZone): Duration

Convert the given DateTimePeriod to a Duration based on the given timezone, relative to the current system time.