Returns the time at now - self.
# File lib/assistance/time_calculations.rb, line 23 def ago(t = Time.now); t - self; end
Converts self from days to seconds
# File lib/assistance/time_calculations.rb, line 18 def days; self * DAY; end
Returns the time at now + self.
# File lib/assistance/time_calculations.rb, line 27 def from_now(t = Time.now); t + self; end
Converts self from hours to seconds
# File lib/assistance/time_calculations.rb, line 16 def hours; self * HOUR; end
Converts self from minutes to seconds
# File lib/assistance/time_calculations.rb, line 14 def minutes; self * MINUTE; end
Converts self from weeks to seconds
# File lib/assistance/time_calculations.rb, line 20 def weeks; self * WEEK; end
Generated with the Darkfish Rdoc Generator 2.