Time

interface Time : Comparable<Time> , Serializable

Interface for time representation.

Functions

Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
abstract fun isInfinite(): Boolean
Verifies if the Time is set at infinite, namely if the event will never happen.
Link copied to clipboard
abstract fun minus(dt: Time): Time
Allows to subtract a Time to this Time.
Link copied to clipboard
abstract fun plus(dt: Time): Time
Allows to add a Time to this Time.
Link copied to clipboard
abstract fun times(var: Double): Time
Allows to multiply this Time for a constant.
Link copied to clipboard
abstract fun toDouble(): Double
Allows to get a double representation of this Time.

Properties

Link copied to clipboard
val INFINITY: Time
Indefinitely future time.
Link copied to clipboard
val ZERO: Time
Initial time.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
operator fun Time.minus(other: Double): Time

Minus operator for Time and Double.

Link copied to clipboard
operator fun Time.plus(other: Double): Time

Plus operator for Time and Double.