Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created February 21, 2014 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lennartkoopmann/9140516 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/9140516 to your computer and use it in GitHub Desktop.
2.0.0p0 :001 > Time.now
=> 2014-02-21 19:41:13 +0100
2.0.0p0 :002 > Time.now.utc.iso8601
NoMethodError: undefined method `iso8601' for 2014-02-21 18:41:16 UTC:Time
from (irb):2
from /Users/lennart/.rvm/rubies/ruby-2.0.0-p0/bin/irb:16:in `<main>'
2.0.0p0 :003 > require 'time'
=> true
2.0.0p0 :004 > Time.now.utc.iso8601
=> "2014-02-21T18:41:20Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment