//core/io.islandtime.measures/Days
Days¶
common
value class Days(val value: Long) : Comparable<Days>
Constructors¶
Days | common constructor(value: Int) constructor(value: Long) |
Types¶
Name | Summary |
---|---|
Companion | common object Companion |
Properties¶
Name | Summary |
---|---|
absoluteValue | common val absoluteValue: Days The absolute value of this duration. |
inHours | common val inHours: Hours Converts this duration to hours. |
inMicroseconds | common val inMicroseconds: Microseconds Converts this duration to microseconds. |
inMilliseconds | common val inMilliseconds: Milliseconds Converts this duration to milliseconds. |
inMinutes | common val inMinutes: Minutes Converts this duration to minutes. |
inNanoseconds | common val inNanoseconds: Nanoseconds Converts this duration to nanoseconds. |
inSeconds | common val inSeconds: Seconds Converts this duration to seconds. |
inWholeWeeks | common val inWholeWeeks: Weeks Converts this duration to the number of whole weeks. |
value | common val value: Long The underlying value. |
Functions¶
Name | Summary |
---|---|
asDuration | common fun Days.asDuration(): Duration |
asPeriod | common fun Days.asPeriod(): Period Converts this duration into a Period with the same number of days. |
compareTo | common open operator override fun compareTo(other: Days): Int |
div | common operator fun div(scalar: Int): Days operator fun div(scalar: Long): Days Returns this duration divided by a scalar value. |
minus | common operator fun minus(days: Days): Days operator fun minus(hours: Hours): Hours operator fun minus(microseconds: Microseconds): Microseconds operator fun minus(milliseconds: Milliseconds): Milliseconds operator fun minus(minutes: Minutes): Minutes operator fun minus(nanoseconds: Nanoseconds): Nanoseconds operator fun minus(seconds: Seconds): Seconds operator fun minus(weeks: Weeks): Days |
minus | common operator fun Days.minus(period: Period): Period |
plus | common operator fun plus(days: Days): Days operator fun plus(hours: Hours): Hours operator fun plus(microseconds: Microseconds): Microseconds operator fun plus(milliseconds: Milliseconds): Milliseconds operator fun plus(minutes: Minutes): Minutes operator fun plus(nanoseconds: Nanoseconds): Nanoseconds operator fun plus(seconds: Seconds): Seconds operator fun plus(weeks: Weeks): Days |
plus | common operator fun Days.plus(period: Period): Period |
rem | common operator fun rem(scalar: Int): Days operator fun rem(scalar: Long): Days Returns the remainder of this duration divided by a scalar value. |
times | common operator fun times(scalar: Int): Days operator fun times(scalar: Long): Days Multiplies this duration by a scalar value. |
toComponents | common inline fun <T> toComponents(action: (weeks: Weeks, days: Days) -> T): T |
toComponentValues | common inline fun <T> toComponentValues(action: (weeks: Long, days: Int) -> T): T |
toDouble | common fun toDouble(): Double Converts this duration to a Double value. |
toInt | common fun toInt(): Int Converts this duration to an Int value. |
toJavaDuration | jvm fun Days.toJavaDuration(): Duration Converts this duration to an equivalent Java Duration . |
toJavaPeriod | jvm fun Days.toJavaPeriod(): Period Converts this duration to an equivalent Java Period . |
toKotlinDuration | common fun toKotlinDuration(): Duration Converts this duration to a kotlin.time.Duration. |
toLong | common fun toLong(): Long Converts this duration to a Long value. |
toNSTimeInterval | darwin fun Days.toNSTimeInterval(): <Error class: unknown class> Converts this duration to an equivalent NSTimeInterval . |
toString | common open override fun toString(): String Converts this duration to an ISO-8601 time interval representation. |
unaryMinus | common operator fun unaryMinus(): Days Negates this duration. |