Package-level declarations

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

Returns this Duration as a kotlin.time.Duration.

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

Returns the negative of this value.

Properties

Link copied to clipboard
val Int.hours: Duration

Returns a duration equal to this Int number of hours.

val Long.hours: Duration

Returns a duration equal to this Long number of hours.

val Double.hours: Duration

Returns a duration equal to this Double number of hours.

Link copied to clipboard
val Int.milliseconds: Duration

Returns a duration equal to this Int number of milliseconds.

val Long.milliseconds: Duration

Returns a duration equal to this Long number of milliseconds.

val Double.milliseconds: Duration

Returns a duration equal to this Double number of milliseconds.

Link copied to clipboard
val Int.minutes: Duration

Returns a duration equal to this Int number of minutes.

val Long.minutes: Duration

Returns a duration equal to this Long number of minutes.

val Double.minutes: Duration

Returns a duration equal to this Double number of minutes.

Link copied to clipboard
val Int.seconds: Duration

Returns a duration equal to this Int number of seconds.

val Long.seconds: Duration

Returns a duration equal to this Long number of seconds.

val Double.seconds: Duration

Returns a duration equal to this Double number of seconds.