core-ktx / androidx.time / java.time.Period

Extensions for java.time.Period

component1

operator fun Period.component1(): Int

Return the years component of this Period.

component2

operator fun Period.component2(): Int

Return the months component of this Period.

component3

operator fun Period.component3(): Int

Return the days component of this Period.

times

operator fun Period.times(multiplicand: Int): Period

Multiply this Period by the multiplicand.

unaryMinus

operator fun Period.unaryMinus(): Period

Negate this Period.