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,826 of 187,286
Downloads: 41,797

Daily

Ranking: 16,505 of 187,264
Downloads: 33

Depended by

RankDownloadsName
112,7766,249sql_cmd

Depends on

RankDownloadsName
12,976,933,643bundler
71,197,842,629activesupport
71,197,842,629activesupport
101,153,275,696rake
27919,994,150rspec
57605,291,972rubocop
99421,619,623simplecov
174255,374,448pry-byebug
197232,509,796rspec_junit_formatter
224195,419,389yard
317138,428,269guard
386116,326,413guard-rspec
411110,082,026redcarpet
75767,230,170fuubar
1,34429,738,119rubocop-rake
2,08411,214,712terminal-notifier-guard
7,105585,045guard-yard
17,77994,826rspec_junit

Owners

#GravatarHandle
1iconaks