Package-level declarations

Properties

Link copied to clipboard
val Double.h: Duration

Returns a duration equal to this Double number of hours.

val Int.h: Duration

Returns a duration equal to this Int number of hours.

val Long.h: Duration

Returns a duration equal to this Long number of hours.

Link copied to clipboard
val Double.m: Duration

Returns a duration equal to this Double number of minutes.

val Int.m: Duration

Returns a duration equal to this Int number of minutes.

val Long.m: Duration

Returns a duration equal to this Long number of minutes.

Link copied to clipboard
val Double.ms: Duration

Returns a duration equal to this Double number of milliseconds.

val Int.ms: Duration

Returns a duration equal to this Int number of milliseconds.

val Long.ms: Duration

Returns a duration equal to this Long number of milliseconds.

Link copied to clipboard
val Double.s: Duration

Returns a duration equal to this Double number of seconds.

val Int.s: Duration

Returns a duration equal to this Int number of seconds.

val Long.s: Duration

Returns a duration equal to this Long number of seconds.

Functions

Link copied to clipboard
inline operator fun Duration.div(scale: Double): Duration
operator fun Duration.div(scale: Int): Duration

Returns a duration whose value is this duration value divided by the given scale number.

Link copied to clipboard
inline operator fun Duration.minus(other: Duration): Duration

Returns a duration whose value is the difference between this and other duration values.

Link copied to clipboard
inline operator fun Duration.plus(other: Duration): Duration

Returns a duration whose value is the sum of this and other duration values.

Link copied to clipboard
inline operator fun Duration.times(scale: Double): Duration
operator fun Duration.times(scale: Int): Duration

Returns a duration whose value is this duration value multiplied by the given scale number.

Link copied to clipboard
inline fun String.toDuration(): Duration

Converts this String to a duration with the syntax [number][ms|s|m|h].

Link copied to clipboard
inline fun Duration.toFxDuration(): Duration

Returns this kotlin.time.Duration as a JavaFX Duration.

Link copied to clipboard
inline fun Duration.toKotlinDuration(): Duration

Returns this Duration as a kotlin.time.Duration.

Link copied to clipboard
inline operator fun Duration.unaryMinus(): Duration

Returns the negative of this value.