IntMinutes

A number of minutes.

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

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

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

Divides this duration by a scalar value.

operator fun div(scalar: Int): IntMinutes
operator fun div(scalar: Long): LongMinutes
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): IntSeconds
operator fun minus(seconds: LongSeconds): LongSeconds
operator fun minus(minutes: IntMinutes): IntMinutes
operator fun minus(minutes: LongMinutes): LongMinutes
operator fun minus(hours: IntHours): IntMinutes
operator fun minus(hours: LongHours): LongMinutes
operator fun minus(days: IntDays): IntMinutes
operator fun minus(days: LongDays): LongMinutes
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): IntSeconds
operator fun plus(seconds: LongSeconds): LongSeconds
operator fun plus(minutes: IntMinutes): IntMinutes
operator fun plus(minutes: LongMinutes): LongMinutes
operator fun plus(hours: IntHours): IntMinutes
operator fun plus(hours: LongHours): LongMinutes
operator fun plus(days: IntDays): IntMinutes
operator fun plus(days: LongDays): LongMinutes
rem
Link copied to clipboard
common
operator fun rem(scalar: Int): IntMinutes
operator fun rem(scalar: Long): LongMinutes
times
Link copied to clipboard
common

Multiplies this duration by a scalar value.

operator fun times(scalar: Int): IntMinutes
operator fun times(scalar: Long): LongMinutes
toComponents
Link copied to clipboard
common
inline fun <T> toComponents(action: (IntHours, IntMinutes) -> T): T
inline fun <T> toComponents(action: (IntDays, IntHours, IntMinutes) -> T): T
toKotlinDuration
Link copied to clipboard
common

Converts this duration to a kotlin.time.Duration.

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

Converts this duration to a Long value.

fun toLong(): Long
toLongMinutes
Link copied to clipboard
common

Converts this duration to LongMinutes.

fun toLongMinutes(): LongMinutes
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(): IntMinutes

Properties

absoluteValue
Link copied to clipboard
common

The absolute value of this duration.

val absoluteValue: IntMinutes
inDays
Link copied to clipboard
common

Converts this duration to the number of whole days.

val inDays: IntDays
inHours
Link copied to clipboard
common

Converts this duration to the number of whole hours.

val inHours: IntHours
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
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: IntSeconds
value
Link copied to clipboard
common

The underlying value.

val value: Int

Extensions

asDuration
Link copied to clipboard
common
fun IntMinutes.asDuration(): Duration
asUtcOffset
Link copied to clipboard
common

Converts a duration of minutes into a UtcOffset of the same length.

fun IntMinutes.asUtcOffset(): UtcOffset
toJavaDuration
Link copied to clipboard

Converts this duration to an equivalent Java Duration.

fun IntMinutes.toJavaDuration(): Duration
toNSTimeInterval
Link copied to clipboard
darwin

Converts this duration to an equivalent NSTimeInterval.

fun IntMinutes.toNSTimeInterval(): <ERROR CLASS>