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: 28,972 of 196,658
Downloads: 51,066

Daily

Ranking: 88,523 of 196,619
Downloads: 1

Depended by

RankDownloadsName
104,5258,068sql_cmd

Depends on

RankDownloadsName
13,750,343,576bundler
71,432,165,956activesupport
71,432,165,956activesupport
81,416,600,134rake
291,020,526,382rspec
56747,227,703rubocop
98501,545,707simplecov
190287,423,613pry-byebug
200272,851,485rspec_junit_formatter
232235,518,362yard
343155,039,914guard
400134,641,120redcarpet
414129,787,465guard-rspec
79672,843,196fuubar
1,10944,412,478rubocop-rake
2,17712,430,172terminal-notifier-guard
7,484659,891guard-yard
18,317104,335rspec_junit

Owners

#GravatarHandle
1iconaks