Categories: None [Edit]

easy_time

https://rubygems.org/gems/easy_time
https://github.com/aks/easy_time
A class that wraps the Time class and makes it easy to work with most known time values, including various time strings, automatically converting them to Time values, and perform tolerant comparisons. Several time classes, and the String class, are extended with the ".easy_time" method to perform an auto-conversion. A tolerant comparison allows for times from differing systems to be compared, even when the systems are out of sync, using the relationship operators and methods like "newer?", "older?", "same?" and "between?". A tolerant comparison for equality is where the difference of two values is less than the tolerance value (1 minute by default). The tolerance can be configured, even set to zero. Finally, all of the Time class and instance methods are available on the EasyTime class and instances.

Total

Ranking: 30,734 of 187,622
Downloads: 42,238

Daily

Ranking: 19,288 of 187,603
Downloads: 24

Depended by

RankDownloadsName
111,1856,463sql_cmd

Depends on

RankDownloadsName
13,012,753,026bundler
71,212,991,452activesupport
71,212,991,452activesupport
101,166,409,648rake
28925,351,231rspec
57613,899,529rubocop
98425,428,441simplecov
175257,116,185pry-byebug
197234,569,134rspec_junit_formatter
224197,278,027yard
319139,322,545guard
387117,060,719guard-rspec
414111,231,473redcarpet
76067,500,577fuubar
1,32930,469,614rubocop-rake
2,08711,273,882terminal-notifier-guard
7,125588,572guard-yard
17,68896,307rspec_junit

Owners

#GravatarHandle
1iconaks