inline class LongYears : Comparable<LongYears>
A number of years.
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init> |
A number of years. <init>(value: Long) |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
absoluteValue |
Returns the absolute value. val absoluteValue: LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inCenturies |
Convert to whole centuries. val inCenturies: LongCenturies |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inDecades |
Convert to whole decades. val inDecades: LongDecades |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
inMonths |
Convert to months. val inMonths: LongMonths |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
value |
The underlying value. val value: Long |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
compareTo |
fun compareTo(other: LongYears): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
div |
Divide by a scalar value. operator fun div(scalar: Int): LongYearsoperator 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): LongMonthsoperator fun minus(months: LongMonths): LongMonthsoperator fun minus(years: IntYears): LongYearsoperator fun minus(years: LongYears): LongYearsoperator fun minus(decades: IntDecades): LongYearsoperator fun minus(decades: LongDecades): LongYearsoperator fun minus(centuries: IntCenturies): LongYearsoperator fun minus(centuries: LongCenturies): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
plus |
operator fun plus(months: IntMonths): LongMonthsoperator fun plus(months: LongMonths): LongMonthsoperator fun plus(years: IntYears): LongYearsoperator fun plus(years: LongYears): LongYearsoperator fun plus(decades: IntDecades): LongYearsoperator fun plus(decades: LongDecades): LongYearsoperator fun plus(centuries: IntCenturies): LongYearsoperator fun plus(centuries: LongCenturies): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
rem |
operator fun rem(scalar: Int): LongYearsoperator fun rem(scalar: Long): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
times |
Multiply by a scalar value. operator fun times(scalar: Int): LongYearsoperator fun times(scalar: Long): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toComponents |
fun <T> toComponents(action: (decades: LongDecades, years: IntYears) -> T): Tfun <T> toComponents(action: (centuries: LongCenturies, decades: IntDecades, years: IntYears) -> T): T |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toInt |
Convert to a unit-less fun toInt(): Int |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
toIntYears |
Convert to IntYears. fun toIntYears(): IntYears |
(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(): LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MAX |
The largest supported value. val MAX: LongYears |
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
MIN |
The smallest supported value. val MIN: LongYears |
(jvm)
toJavaPeriod |
Convert to an equivalent Java fun LongYears.toJavaPeriod(): Period |