Skip to content

Instantly share code, notes, and snippets.

@xuncheng
Last active September 10, 2015 07:45
Show Gist options
  • Save xuncheng/4825c141d03d5d2659b9 to your computer and use it in GitHub Desktop.
Save xuncheng/4825c141d03d5d2659b9 to your computer and use it in GitHub Desktop.

Revisions

  1. xuncheng revised this gist Sep 10, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ruby_match_js_date.rb
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    Time.now.strftime("%FT%T%:z")
    # => 2007-11-19T08:37:48-06:00
    # => 2007-11-19T08:37:48-06:00 Safari下只能Parse这种格式的时间
    Time.now.strftime("%FT%T%:z")
  2. xuncheng created this gist Sep 10, 2015.
    2 changes: 2 additions & 0 deletions ruby_match_js_date.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Time.now.strftime("%FT%T%:z")
    # => 2007-11-19T08:37:48-06:00