module TimeConstantMethods
def after( time )
## Returns the Time
def after( time ) return time + self end
def ago
## Returns the Time
def ago return self.before( ::Time.now ) end
def before( time )
## Returns the Time
def before( time ) return time - self end
def days
def days return self * 24.hours end
def fortnights
def fortnights return self * 2.weeks end
def from_now
def from_now return self.after( ::Time.now ) end
def hours
def hours return self * 60.minutes end
def minutes
def minutes return self * 60 end
def months
def months return self * 30.days end
def seconds
def seconds return self end
def weeks
def weeks return self * 7.days end
def years
def years return (self * 365.25.days).to_i end