RubyGems Navigation menu

easy_time 1.0.1

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.

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 1.0.1 - February 27, 2024 (19.5KB)
  2. 1.0.0 - February 27, 2024 (19.5KB)
  3. 0.2.2 - January 19, 2024 (19KB)
  4. 0.2.1 - April 27, 2020 (18.5KB)
  5. 0.2.0 - April 27, 2020 (18.5KB)
全てのバージョンを表示(全8件)

Runtime依存関係 (1):

Development依存関係 (17):

activesupport >= 6.1.4
bundler ~> 2.1.4
fuubar >= 2.5.0
guard >= 0
guard-yard >= 0
pry-byebug >= 0
rake >= 0
redcarpet >= 0
rspec >= 0
rubocop >= 0.82.0
simplecov >= 0
yard >= 0.9.24

所有者:

プッシュ者:

作者:

  • Alan Stebbens

SHA 256チェックサム:

8656b8f8295b1de35bf2896c7e97a337233f9f670851d73f86e646ac1d9556e9

累計ダウンロード数 6,176

このバージョンのみ 379

ライセンス:

MIT

必要なRubyのバージョン: >= 2.7

リンク: