struct

Temporal::Interval

Inherits Struct < Value < Object

A temporal interval [start_time, end_time]

Constructors

new(start_time : Float64, end_time : Float64)

Instance methods

contains?(t : Float64) : Bool
duration
end_time
overlaps?(other : Interval) : Bool
start_time
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.