This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Jun 12 11:35:47 -0700 2008 | |
| |
README.markdown | Mon Aug 18 19:03:45 -0700 2008 | |
| |
Rakefile | Thu Jun 12 11:35:47 -0700 2008 | |
| |
init.rb | Thu Jun 12 11:35:47 -0700 2008 | |
| |
lib/ | Thu Jun 12 11:35:47 -0700 2008 | |
| |
test/ | Thu Jun 12 11:35:47 -0700 2008 |
README.markdown
ElapsedTime
Add support for converting an English representation of elapsed time into seconds and back (with validation).
Example
"1 day, 10 hours, 17 minutes and 36 seconds".parse_elapsed_time
=> 123456
123456.to_elapsed_time
=> "1 day, 10 hours, 17 minutes and 36 seconds"
class Job < ActiveRecord::Base
elapsed_time :estimate
validates_elapsed_time_of :estimate, :allow_nil => true
end
Legal
Author: S. Brent Faulkner brentf@unwwwired.net
License: Copyright © 2008 unwwwired.net, released under the MIT license







