Finally - a useful way of measuring time in your applications.

*Install*

Install and require the gem manually or through bundler.

*Usage*

  10.in_a_gadda_da_vidas.ago
    => 2013-04-18 11:25:56 -0400

  2.bravehearts.from_now
    => 2013-04-18 20:10:45 -0400

  "I regret I have but #{86400.to_f/1.doctor_zhivago} Doctor Zhivago's in a
day"
    => "I regret I have but 7.309644670050761 Doctor Zhivago's in a day"

*New In This Version*
*
*
A DSL nice DSL to define custom durrations.
(prezjordan<https://github.com/prezjordan>
)

require 'useful_duration'

include UsefulDuration

useful_duration :fortnights, 1209600

1.fortnight.from_now => 2013-07-21 08:47:37 -0400


*Dependencies:*

This requires ActiveSupport to play nicely with ActiveSupport duration.
It was written against 3.2.13 and hasn't been regression tested against
other versions.

GIthub:       https://github.com/nodanaonlyzuul/useful_duration
Rubygems: http://rubygems.org/gems/useful_duration