core / io.islandtime.measures / IntCenturies

IntCenturies

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) inline class IntCenturies : Comparable<IntCenturies>

A number of centuries.

Constructors

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

<init>

A number of centuries.

<init>(value: Int)

Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

absoluteValue

Returns the absolute value.

val absoluteValue: IntCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

inDecades

Convert to 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)

inYears

Convert to years.

val inYears: IntYears
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

value

The underlying value.

val value: Int

Functions

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

compareTo

fun compareTo(other: IntCenturies): Int
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

div

Divide by a scalar value.

operator fun div(scalar: Int): IntCenturies
operator fun div(scalar: Long): LongCenturies
(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): IntMonths
operator fun minus(months: LongMonths): LongMonths
operator fun minus(years: IntYears): IntYears
operator fun minus(years: LongYears): LongYears
operator fun minus(decades: IntDecades): IntDecades
operator fun minus(decades: LongDecades): LongDecades
operator fun minus(centuries: IntCenturies): IntCenturies
operator fun minus(centuries: LongCenturies): LongCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

plus

operator fun plus(months: IntMonths): IntMonths
operator fun plus(months: LongMonths): LongMonths
operator fun plus(years: IntYears): IntYears
operator fun plus(years: LongYears): LongYears
operator fun plus(decades: IntDecades): IntDecades
operator fun plus(decades: LongDecades): LongDecades
operator fun plus(centuries: IntCenturies): IntCenturies
operator fun plus(centuries: LongCenturies): LongCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

rem

operator fun rem(scalar: Int): IntCenturies
operator fun rem(scalar: Long): LongCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

times

Multiply by a scalar value.

operator fun times(scalar: Int): IntCenturies
operator fun times(scalar: Long): LongCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toLong

Convert to a unit-less Long value.

fun toLong(): Long
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

toLongCenturies

Convert to LongCenturies.

fun toLongCenturies(): LongCenturies
(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(): IntCenturies

Companion Object Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

MAX

The largest supported value.

val MAX: IntCenturies
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

MIN

The smallest supported value.

val MIN: IntCenturies

Extension Functions

(jvm)

toJavaPeriod

Convert to an equivalent Java Period.

fun IntCenturies.toJavaPeriod(): Period