Symphony::Metronome::
TimeRefinements module
Refinements to Numeric to add time-related convenience methods
Public Instance Methods
Returns the Time <receiver> number of seconds after the given time
. E.g., 10.minutes.after( header.expiration )
Returns the Time <receiver> number of seconds ago. (e.g., expiration > 2.hours.ago )
Returns the Time <receiver> number of seconds before the specified time
. E.g., 2.hours.before( header.expiration )
Returns the number of seconds in <receiver> days
Returns the number of seconds in <receiver> fortnights
Return a new Time <receiver> number of seconds from now.
Returns the number of seconds in <receiver> hours
Returns number of seconds in <receiver> minutes
Returns the number of seconds in <receiver> months (approximate)
Number of seconds (returns receiver unmodified)
Return the number of seconds in <receiver> weeks
Returns the number of seconds in <receiver> years (approximate)