Time::Elapsed
Adds elapsed time functionality to ruby Time objects
Installation
gem install time-elapsed
Usage
require 'time-elapsed'
Examples
Time.now.plus('2 minutes 32 seconds')
Time.now.minus('3 weeks and 3 days and 32 hours')
Time.now + Time::Elapsed.time('34m30s')
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request