inline class IntYears : Comparable<IntYears>
A number of years.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init> |
A number of years. <init>(value: Int) |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
absoluteValue |
Returns the absolute value. val absoluteValue: IntYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inCenturies |
Convert to whole centuries. val inCenturies: IntCenturies |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inDecades |
Convert to whole decades. val inDecades: IntDecades |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inMonths |
Convert to months. val inMonths: IntMonths |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
value |
The underlying value. val value: Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
compareTo |
fun compareTo(other: IntYears): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
div |
Divide by a scalar value. operator fun div(scalar: Int): IntYearsoperator fun div(scalar: Long): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
isNegative |
Is this duration negative? fun isNegative(): Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
isPositive |
Is this duration positive? fun isPositive(): Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
isZero |
Is this duration zero? fun isZero(): Boolean |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
minus |
operator fun minus(months: IntMonths): IntMonthsoperator fun minus(months: LongMonths): LongMonthsoperator fun minus(years: IntYears): IntYearsoperator fun minus(years: LongYears): LongYearsoperator fun minus(decades: IntDecades): IntYearsoperator fun minus(decades: LongDecades): LongYearsoperator fun minus(centuries: IntCenturies): IntYearsoperator fun minus(centuries: LongCenturies): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
plus |
operator fun plus(months: IntMonths): IntMonthsoperator fun plus(months: LongMonths): LongMonthsoperator fun plus(years: IntYears): IntYearsoperator fun plus(years: LongYears): LongYearsoperator fun plus(decades: IntDecades): IntYearsoperator fun plus(decades: LongDecades): LongYearsoperator fun plus(centuries: IntCenturies): IntYearsoperator fun plus(centuries: LongCenturies): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
rem |
operator fun rem(scalar: Int): IntYearsoperator fun rem(scalar: Long): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
times |
Multiply by a scalar value. operator fun times(scalar: Int): IntYearsoperator fun times(scalar: Long): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toComponents |
fun <T> toComponents(action: (decades: IntDecades, years: IntYears) -> T): Tfun <T> toComponents(action: (centuries: IntCenturies, decades: IntDecades, years: IntYears) -> T): T |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toLong |
Convert to a unit-less fun toLong(): Long |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toLongYears |
Convert to LongYears. fun toLongYears(): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toString |
Convert to an ISO-8601 time interval representation. fun toString(): String |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
unaryMinus |
Negate the value. operator fun unaryMinus(): IntYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MAX |
The largest supported value. val MAX: IntYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MIN |
The smallest supported value. val MIN: IntYears |
(jvm)
toJavaPeriod |
Convert to an equivalent Java fun IntYears.toJavaPeriod(): Period |