Types
Link copied to clipboard
interface FromIso8601Options
Functions
Link copied to clipboard
fun clone(timeInterval: TimeInterval? = definedExternally, result: TimeInterval? = definedExternally): TimeInterval
Duplicates the provided instance.
Link copied to clipboard
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
fun fromIso8601(options: TimeInterval.Companion.FromIso8601Options, result: TimeInterval? = definedExternally): TimeInterval
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
Creates an ISO8601 representation of the provided interval.