File: time_dsl.rb

# time_dsl.rb

Path: | lib/merb-helpers/time_dsl.rb
Last Update: | Sun Mar 22 08:41:36 -0600 2009

Provides a a simple way of calling time units and to see the elapsed time between 2 moments

#### Examples

      142.minutes => returns a value in seconds
      7.days => returns a value in seconds
      1.week => returns a value in seconds
      2.weeks.ago => returns a date
      1.year.since(time) => returns a date
      5.months.since(2.weeks.from_now) => returns a date

[Validate]