IntWeeks

inline class IntWeeks(value: Int) : Comparable<IntWeeks>

A number of weeks.

Constructors

IntWeeks
Link copied to clipboard
common
fun IntWeeks(value: Int)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: IntWeeks): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): IntWeeks
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongWeeks
Divides this duration by a scalar value.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
isNegative
Link copied to clipboard
common
fun isNegative(): Boolean
Checks if this duration is negative.
isPositive
Link copied to clipboard
common
fun isPositive(): Boolean
Checks if this duration is positive.
isZero
Link copied to clipboard
common
fun isZero(): Boolean
Checks if this duration is zero.
minus
Link copied to clipboard
common
operator fun minus(days: IntDays): IntDays
operator fun minus(weeks: IntWeeks): IntWeeks
operator fun minus(days: LongDays): LongDays
operator fun minus(weeks: LongWeeks): LongWeeks
plus
Link copied to clipboard
common
operator fun plus(days: IntDays): IntDays
operator fun plus(weeks: IntWeeks): IntWeeks
operator fun plus(days: LongDays): LongDays
operator fun plus(weeks: LongWeeks): LongWeeks
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntWeeks
operator fun rem(scalar: Long): LongWeeks
times
Link copied to clipboard
common
operator fun times(scalar: Int): IntWeeks
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongWeeks
Multiplies this duration by a scalar value.
toLong
Link copied to clipboard
common
fun toLong(): Long
Converts this duration to a Long value.
toLongWeeks
Link copied to clipboard
common
fun toLongWeeks(): LongWeeks
Converts this duration to LongWeeks.
toString
Link copied to clipboard
common
open override fun toString(): String
Converts this duration to an ISO-8601 time interval representation.
unaryMinus
Link copied to clipboard
common
operator fun unaryMinus(): IntWeeks
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: IntWeeks
The absolute value of this duration.
inDays
Link copied to clipboard
common
val inDays: IntDays
Converts this duration to days.
value
Link copied to clipboard
common
val value: Int
The underlying value.

Extensions

asPeriod
Link copied to clipboard
common
fun IntWeeks.asPeriod(): Period
Converts this duration into a Period with the same number of weeks.
minus
Link copied to clipboard
common
operator fun IntWeeks.minus(period: Period): Period
plus
Link copied to clipboard
common
operator fun IntWeeks.plus(period: Period): Period
toJavaPeriod
Link copied to clipboard
fun IntWeeks.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.