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: 31,248 of 186,959
Downloads: 40,146

Daily

Ranking: 12,475 of 186,713
Downloads: 92

Depended by

RankDownloadsName
117,9975,566sql_cmd

Depends on

RankDownloadsName
12,905,736,219bundler
71,168,553,921activesupport
71,168,553,921activesupport
101,128,098,871rake
27909,387,510rspec
57589,619,268rubocop
99413,507,374simplecov
171251,488,314pry-byebug
194228,573,686rspec_junit_formatter
223191,731,040yard
312136,419,936guard
383114,665,975guard-rspec
411107,719,384redcarpet
75066,640,620fuubar
1,37628,161,242rubocop-rake
2,06711,105,137terminal-notifier-guard
7,084577,019guard-yard
17,78193,015rspec_junit

Owners

#GravatarHandle
1iconaks