Skip to content

Instantly share code, notes, and snippets.

@speric
Last active August 29, 2015 14:15
Show Gist options
  • Save speric/41c9b4e4f53e51e91e06 to your computer and use it in GitHub Desktop.
Save speric/41c9b4e4f53e51e91e06 to your computer and use it in GitHub Desktop.

Revisions

  1. speric revised this gist Feb 9, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion x.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ```ruby
    Rails 3.2.21, ruby 2.0.0p353
    # Rails 3.2.21, ruby 2.0.0p353

    # 'American' style
    > Time.zone.parse("11/12/2012 10:10")
  2. speric revised this gist Feb 9, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions x.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ```ruby
    Rails 3.2.21, ruby 2.0.0p353

    # 'American' style
    > Time.zone.parse("11/12/2012 10:10")
    => Mon, 12 Nov 2012 10:10:00 EST -05:00
  3. speric renamed this gist Feb 9, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. speric created this gist Feb 9, 2015.
    9 changes: 9 additions & 0 deletions x.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ```ruby
    # 'American' style
    > Time.zone.parse("11/12/2012 10:10")
    => Mon, 12 Nov 2012 10:10:00 EST -05:00
    # 'Rest of the world' style
    > Time.zone.parse("11-12-2012 10:10")
    => Tue, 11 Dec 2012 10:10:00 EST -05:00
    ```