IntDays

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

A number of days.

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: IntDays): Int
div
Link copied to clipboard
common
operator fun div(scalar: Int): IntDays
Divides this duration by a scalar value.
operator fun div(scalar: Long): LongDays
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(hours: IntHours): IntHours
operator fun minus(microseconds: IntMicroseconds): LongMicroseconds
operator fun minus(milliseconds: IntMilliseconds): LongMilliseconds
operator fun minus(minutes: IntMinutes): IntMinutes
operator fun minus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun minus(seconds: IntSeconds): IntSeconds
operator fun minus(weeks: IntWeeks): IntDays
operator fun minus(days: LongDays): LongDays
operator fun minus(hours: LongHours): LongHours
operator fun minus(microseconds: LongMicroseconds): LongMicroseconds
operator fun minus(milliseconds: LongMilliseconds): LongMilliseconds
operator fun minus(minutes: LongMinutes): LongMinutes
operator fun minus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun minus(seconds: LongSeconds): LongSeconds
operator fun minus(weeks: LongWeeks): LongDays
plus
Link copied to clipboard
common
operator fun plus(days: IntDays): IntDays
operator fun plus(hours: IntHours): IntHours
operator fun plus(microseconds: IntMicroseconds): LongMicroseconds
operator fun plus(milliseconds: IntMilliseconds): LongMilliseconds
operator fun plus(minutes: IntMinutes): IntMinutes
operator fun plus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun plus(seconds: IntSeconds): IntSeconds
operator fun plus(weeks: IntWeeks): IntDays
operator fun plus(days: LongDays): LongDays
operator fun plus(hours: LongHours): LongHours
operator fun plus(microseconds: LongMicroseconds): LongMicroseconds
operator fun plus(milliseconds: LongMilliseconds): LongMilliseconds
operator fun plus(minutes: LongMinutes): LongMinutes
operator fun plus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun plus(seconds: LongSeconds): LongSeconds
operator fun plus(weeks: LongWeeks): LongDays
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntDays
operator fun rem(scalar: Long): LongDays
times
Link copied to clipboard
common
operator fun times(scalar: Int): IntDays
Multiplies this duration by a scalar value.
operator fun times(scalar: Long): LongDays
Multiplies this duration by a scalar value.
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (weeks: IntWeeks, days: IntDays) -> T): T
toKotlinDuration
Link copied to clipboard
common
fun toKotlinDuration(): Duration
Converts this duration to a kotlin.time.Duration.
toLong
Link copied to clipboard
common
fun toLong(): Long
Converts this duration to a Long value.
toLongDays
Link copied to clipboard
common
fun toLongDays(): LongDays
Converts this duration to LongDays.
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(): IntDays
Negates this duration.

Properties

absoluteValue
Link copied to clipboard
common
val absoluteValue: IntDays
The absolute value of this duration.
inHours
Link copied to clipboard
common
val inHours: IntHours
Converts this duration to hours.
inMicroseconds
Link copied to clipboard
common
val inMicroseconds: LongMicroseconds
Converts this duration to microseconds.
inMilliseconds
Link copied to clipboard
common
val inMilliseconds: LongMilliseconds
Converts this duration to milliseconds.
inMinutes
Link copied to clipboard
common
val inMinutes: IntMinutes
Converts this duration to minutes.
inNanoseconds
Link copied to clipboard
common
val inNanoseconds: LongNanoseconds
Converts this duration to nanoseconds.
inSeconds
Link copied to clipboard
common
val inSeconds: IntSeconds
Converts this duration to seconds.
inWeeks
Link copied to clipboard
common
val inWeeks: IntWeeks
Converts this duration to the number of whole weeks.
value
Link copied to clipboard
common
val value: Int
The underlying value.

Extensions

asDuration
Link copied to clipboard
common
fun IntDays.asDuration(): Duration
asPeriod
Link copied to clipboard
common
fun IntDays.asPeriod(): Period
Converts this duration into a Period with the same number of days.
minus
Link copied to clipboard
common
operator fun IntDays.minus(period: Period): Period
plus
Link copied to clipboard
common
operator fun IntDays.plus(period: Period): Period
toJavaDuration
Link copied to clipboard
fun IntDays.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
toJavaPeriod
Link copied to clipboard
fun IntDays.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
toNSTimeInterval
Link copied to clipboard
darwin
fun IntDays.toNSTimeInterval(): <ERROR CLASS>
Converts this duration to an equivalent NSTimeInterval.