Companion

Types

Link copied to clipboard

Properties

Link copied to clipboard

An immutable empty interval.

Functions

Link copied to clipboard
fun clone(timeInterval: TimeInterval? = definedExternally, result: TimeInterval? = definedExternally): TimeInterval

Duplicates the provided instance.

Link copied to clipboard
fun contains(timeInterval: TimeInterval, julianDate: JulianDate): Boolean

Checks if the specified date is inside the provided interval.

Link copied to clipboard
fun equals(left: TimeInterval? = definedExternally, right: TimeInterval? = definedExternally, dataComparer: DataComparer? = definedExternally): Boolean

Compares two instances and returns true if they are equal, false otherwise.

Link copied to clipboard
fun equalsEpsilon(left: TimeInterval? = definedExternally, right: TimeInterval? = definedExternally, epsilon: Double? = definedExternally, dataComparer: DataComparer? = definedExternally): Boolean

Compares two instances and returns true if they are within epsilon seconds of each other. That is, in order for the dates to be considered equal (and for this function to return true), the absolute value of the difference between them, in seconds, must be less than epsilon.

Link copied to clipboard

Creates a new instance from a ISO 8601 interval.

Link copied to clipboard
fun intersect(left: TimeInterval, right: TimeInterval? = definedExternally, result: TimeInterval? = definedExternally, mergeCallback: MergeCallback? = definedExternally): TimeInterval

Computes the intersection of two intervals, optionally merging their data.

Link copied to clipboard
fun toIso8601(timeInterval: TimeInterval, precision: Double? = definedExternally): String

Creates an ISO8601 representation of the provided interval.