fun IntYears.asPeriod(): Period
Convert IntYears into a Period with the same number of years
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun IntMonths.asPeriod(): Period
Convert IntMonths into a Period with the same number of months
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun IntWeeks.asPeriod(): Period
Convert IntWeeks into a Period with the same number of weeks
ArithmeticException - if the resulting Period would overflow
fun IntDays.asPeriod(): Period
Convert IntDays into a Period with the same number of days
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)fun LongYears.asPeriod(): Period
Convert LongYears into a Period with the same number of years
ArithmeticException - if the resulting Period would overflow
fun LongMonths.asPeriod(): Period
Convert LongMonths into a Period with the same number of months
ArithmeticException - if the resulting Period would overflow
fun LongWeeks.asPeriod(): Period
Convert LongWeeks into a Period with the same number of weeks
ArithmeticException - if the resulting Period would overflow
fun LongDays.asPeriod(): Period
Convert LongDays into a Period with the same number of days
ArithmeticException - if the resulting Period would overflow