LongDays

A number of days.

inline class LongDays(value: Long) : Comparable<LongDays>

Constructors

LongDays
Link copied to clipboard
common
fun LongDays(value: Long)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: LongDays): Int
div
Link copied to clipboard
common

Divides this duration by a scalar value.

operator fun div(scalar: Int): LongDays
operator fun div(scalar: Long): LongDays
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

Checks if this duration is negative.

fun isNegative(): Boolean
isPositive
Link copied to clipboard
common

Checks if this duration is positive.

fun isPositive(): Boolean
isZero
Link copied to clipboard
common

Checks if this duration is zero.

fun isZero(): Boolean
minus
Link copied to clipboard
common
operator fun minus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun minus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun minus(microseconds: IntMicroseconds): LongMicroseconds
operator fun minus(microseconds: LongMicroseconds): LongMicroseconds
operator fun minus(milliseconds: IntMilliseconds): LongMilliseconds
operator fun minus(milliseconds: LongMilliseconds): LongMilliseconds
operator fun minus(seconds: IntSeconds): LongSeconds
operator fun minus(seconds: LongSeconds): LongSeconds
operator fun minus(minutes: IntMinutes): LongMinutes
operator fun minus(minutes: LongMinutes): LongMinutes
operator fun minus(hours: IntHours): LongHours
operator fun minus(hours: LongHours): LongHours
operator fun minus(days: IntDays): LongDays
operator fun minus(days: LongDays): LongDays
operator fun minus(weeks: IntWeeks): LongDays
operator fun minus(weeks: LongWeeks): LongDays
plus
Link copied to clipboard
common
operator fun plus(nanoseconds: IntNanoseconds): LongNanoseconds
operator fun plus(nanoseconds: LongNanoseconds): LongNanoseconds
operator fun plus(microseconds: IntMicroseconds): LongMicroseconds
operator fun plus(microseconds: LongMicroseconds): LongMicroseconds
operator fun plus(milliseconds: IntMilliseconds): LongMilliseconds
operator fun plus(milliseconds: LongMilliseconds): LongMilliseconds
operator fun plus(seconds: IntSeconds): LongSeconds
operator fun plus(seconds: LongSeconds): LongSeconds
operator fun plus(minutes: IntMinutes): LongMinutes
operator fun plus(minutes: LongMinutes): LongMinutes
operator fun plus(hours: IntHours): LongHours
operator fun plus(hours: LongHours): LongHours
operator fun plus(days: IntDays): LongDays
operator fun plus(days: LongDays): LongDays
operator fun plus(weeks: IntWeeks): LongDays
operator fun plus(weeks: LongWeeks): LongDays
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): LongDays
operator fun rem(scalar: Long): LongDays
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

operator fun times(scalar: Int): LongDays
operator fun times(scalar: Long): LongDays
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (LongWeeks, IntDays) -> T): T
toInt
Link copied to clipboard
common

Converts this duration to an Int value.

fun toInt(): Int
toIntDays
Link copied to clipboard
common

Converts this duration to IntDays.

fun toIntDays(): IntDays
toKotlinDuration
Link copied to clipboard
common

Converts this duration to a kotlin.time.Duration.

fun toKotlinDuration(): Duration
toString
Link copied to clipboard
common

Converts this duration to an ISO-8601 time interval representation.

open override fun toString(): String
unaryMinus
Link copied to clipboard
common

Negates this duration.

operator fun unaryMinus(): LongDays

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: LongDays
inHours
Link copied to clipboard
common

Converts this duration to hours.

val inHours: LongHours
inMicroseconds
Link copied to clipboard
common

Converts this duration to microseconds.

val inMicroseconds: LongMicroseconds
inMilliseconds
Link copied to clipboard
common

Converts this duration to milliseconds.

val inMilliseconds: LongMilliseconds
inMinutes
Link copied to clipboard
common

Converts this duration to minutes.

val inMinutes: LongMinutes
inNanoseconds
Link copied to clipboard
common

Converts this duration to nanoseconds.

val inNanoseconds: LongNanoseconds
inSeconds
Link copied to clipboard
common

Converts this duration to seconds.

val inSeconds: LongSeconds
inWeeks
Link copied to clipboard
common

Converts this duration to the number of whole weeks.

val inWeeks: LongWeeks
value
Link copied to clipboard
common

The underlying value.

val value: Long

Extensions

asDuration
Link copied to clipboard
common
fun LongDays.asDuration(): Duration
asPeriod
Link copied to clipboard
common

Converts this duration into a Period with the same number of days.

fun LongDays.asPeriod(): Period
minus
Link copied to clipboard
common
operator fun LongDays.minus(period: Period): Period
plus
Link copied to clipboard
common
operator fun LongDays.plus(period: Period): Period
toJavaDuration
Link copied to clipboard

Converts this duration to an equivalent Java Duration.

fun LongDays.toJavaDuration(): Duration
toJavaPeriod
Link copied to clipboard

Converts this duration to an equivalent Java Period.

fun LongDays.toJavaPeriod(): Period
toNSTimeInterval
Link copied to clipboard
darwin

Converts this duration to an equivalent NSTimeInterval.

fun LongDays.toNSTimeInterval(): <ERROR CLASS>