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)
Add a number of seconds to this span, returning the resulting Span
# File lib/chronic/chronic.rb, line 199 def +(seconds) Span.new(self.begin + seconds, self.end + seconds) end
Subtract a number of seconds to this span, returning the resulting Span
# File lib/chronic/chronic.rb, line 205 def -(seconds) self + -seconds end
Generated with the Darkfish Rdoc Generator 2.