class

Cronic::Timespan

Inherits Reference < Object

A Timespan is a container for a time-span.

Constructors

new(begin __arg0 : Time, end __arg1 : Time)
Source

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

Source
begin
Source
includes?(val) : Bool

Returns true if the time is between begin and end, inclusive.

Source
inspect(io)

Prints this span in a nice fashion for inspection purposes

Source
middle

Returns a Time that is in the middle of this span

Source
precision
Source
precision=(precision)
Source
to_s(io)

Prints this span in a nice fashion

Source
width

Returns the width of this span in seconds

Source