A Timespan is a container for a time-span.
Instance methods
+(seconds : Int32) : Timespan
Add an integer number of seconds to this span, returning
a new Timespan
Source+(seconds : Time::Span) : Timespan
Add a Time::Span to this span, returning
a new Timespan
Source-(seconds) : Timespan
Subtract a number of seconds to this span, returning
a new Timespan
Sourceincludes?(val) : Bool
Returns true if the time is between begin and end, inclusive.
Sourceinspect(io)
Prints this span in a nice fashion for inspection purposes
Sourcemiddle
Returns a Time that is in the middle of this span
Sourceto_s(io)
Prints this span in a nice fashion
Sourcewidth
Returns the width of this span in seconds
Source