crankycoder

Untitled

Dec 16th, 2011
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In regular JRuby irb:
  2.  
  3. jruby-1.6.4 :004 > require 'time'
  4. => false
  5. jruby-1.6.4 :005 > Time.now.utc.iso8601
  6. => "2011-12-16T07:33:42Z"
  7. jruby-1.6.4 :006 >
  8.  
  9.  
  10. In the debugger :
  11.  
  12. (rdb:1) set autoeval on
  13. autoeval is on.
  14. (rdb:1) require 'time'
  15. false
  16. (rdb:1) Time.now
  17. 2011-12-16 09:47:46 -0500
  18. (rdb:1) Time.now.utc
  19. 2011-12-16 14:47:47 UTC
  20. (rdb:1) Time.now.utc.iso8601
  21. NoMethodError Exception: undefined method `iso8601' for 2011-12-16 14:47:49 UTC:Time
  22. (rdb:1)
RAW Paste Data