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,863 of 196,338
Downloads: 51,036

Daily

Ranking: 51,088 of 196,320
Downloads: 0

Depended by

RankDownloadsName
104,3208,057sql_cmd

Depends on

RankDownloadsName
13,687,515,579bundler
71,416,844,709activesupport
71,416,844,709activesupport
81,399,913,164rake
291,013,199,560rspec
57737,392,019rubocop
98495,507,544simplecov
190285,337,889pry-byebug
201270,185,286rspec_junit_formatter
230232,958,209yard
341153,930,624guard
401132,741,282redcarpet
414128,914,782guard-rspec
79472,436,411fuubar
1,12843,248,505rubocop-rake
2,17512,334,785terminal-notifier-guard
7,485654,727guard-yard
18,297103,715rspec_junit

Owners

#GravatarHandle
1iconaks