Companion

external object Companion(source)

Types

Link copied to clipboard
external interface FromIso8601Options

Properties

Link copied to clipboard
external val EMPTY: TimeInterval

An immutable empty interval.

Functions

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

Duplicates the provided instance.

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

Checks if the specified date is inside the provided interval.

Link copied to clipboard
external 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
external 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
external fun fromIso8601(options: TimeInterval.Companion.FromIso8601Options, result: TimeInterval? = definedExternally): TimeInterval

Creates a new instance from a ISO 8601 interval.

Link copied to clipboard
external 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
external fun toIso8601(timeInterval: TimeInterval, precision: Double? = definedExternally): String

Creates an ISO8601 representation of the provided interval.