RubyGems Navigation menu

time-helper 1.3

Adds a few methods to the Time class, more significant: strtotime which returns a Time object based on a string. also methods add and substract that allow you to do some easy date math (doesn't take leap months/years into account) also tomorrow and yesterday methods witch are like Time.now +- 1 day ********************************************** *How is this diferent than just "Time.parse"?* ********************************************** Time.parse does not work well with non-American formats, if like me, you're working with strings that have dates in a format like: DD/MM/YYYY Time.parse will not do. In fact, if you rewrite strtotime so it just calls parse a few of the tests included will fail. New in 1.3: Added support for time strings in the format you'd usualy pass to Time.parse Added utc_parse method for the lazy, it parses the date and converts it to utc New in 1.2 Tomorrow and Yesterday methods New in 1.1 I skiped this version.... because I suck at versioning

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 2.0.1 November 11, 2012 (7KB)
  2. 2.0.0 November 04, 2012 (6.5KB)
  3. 1.3.1 August 20, 2012 (6.5KB)
  4. 1.3 May 31, 2012 (6KB)
  5. 1.2 May 21, 2012 (5.5KB)
全てのバージョンを表示(全7件)

所有者:

作者:

  • Arthur Silva

SHA 256チェックサム:

=

累計ダウンロード数 23,425

このバージョンのみ 2,960

このバージョンがリリースされたのは:

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: