class Cronic::Timespan
- Cronic::Timespan
- Reference
- Object
Overview
A Timespan
is a container for a time-span.
Defined in:
cronic/span.crConstructors
Instance Method Summary
-
#+(seconds : Int32) : Timespan
Add an integer number of seconds to this span, returning a new
Timespan
-
#+(seconds : Time::Span) : Timespan
Add a
Time::Span
to this span, returning a newTimespan
-
#-(seconds) : Timespan
Subtract a number of seconds to this span, returning a new Timespan
- #begin : Time
- #end : Time
-
#includes?(val) : Bool
Returns true if the time is between begin and end, inclusive.
-
#inspect(io)
Prints this span in a nice fashion for inspection purposes
-
#middle : Time
Returns a
Time
that is in the middle of this span - #precision
- #precision=(precision)
-
#to_s(io)
Prints this span in a nice fashion
-
#width : Int
Returns the width of this span in seconds
Constructor Detail
Instance Method Detail
Add an integer number of seconds to this span, returning
a new Timespan
Add a Time::Span
to this span, returning
a new Timespan
Subtract a number of seconds to this span, returning a new Timespan