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: 29,120 of 197,258
Downloads: 51,100

Daily

Ranking: 41,708 of 197,235
Downloads: 2

Depended by

RankDownloadsName
104,8118,104sql_cmd

Depends on

RankDownloadsName
13,820,061,946bundler
71,448,506,135activesupport
71,448,506,135activesupport
81,434,061,178rake
291,027,618,561rspec
55757,493,707rubocop
98507,887,676simplecov
191289,682,147pry-byebug
202275,686,099rspec_junit_formatter
233238,016,700yard
343156,133,018guard
395136,575,392redcarpet
418130,639,158guard-rspec
79773,241,442fuubar
1,09545,629,925rubocop-rake
2,18312,511,237terminal-notifier-guard
7,498665,388guard-yard
18,343104,956rspec_junit

Owners

#GravatarHandle
1iconaks