Class Chronic::Span
In: lib/chronic/chronic.rb
Parent: Range

A Span represents a range of time. Since this class extends Range, you can use begin and end to get the beginning and ending times of the span (they will be of class Time)

Methods

+   -   to_s   width  

Public Instance methods

Add a number of seconds to this span, returning the resulting Span

Subtract a number of seconds to this span, returning the resulting Span

Prints this span in a nice fashion

Returns the width of this span in seconds

[Validate]