Actions
Bug #10936
closedError in Rubydoc for DateTime#rfc3339
Description
There is an error in the Ruby-documentation of instance method #rfc3339 of class DateTime (eg. Ruby-version 2.1.5)
rfc3339() is actually equivalent to strftime(â%FT%T%Zâ)...
... and not, as it says in the Ruby-documentation, to strftime(â%FT%Tâ).
See
http://ruby-doc.org//stdlib-2.1.5/libdoc/date/rdoc/DateTime.html#method-i-rfc3339
Compare
irb(main):001:0> require 'date'
=> true
irb(main):002:0> DateTime.new( 2015, 03, 04, 15, 00, 00, 'PST' ).rfc3339 == DateTime.new( 2015, 03, 04, 15, 00, 00, 'PST' ).strftime('%FT%T%Z')
=> true
irb(main):003:0> DateTime.new( 2015, 03, 04, 15, 00, 00, 'PST' ).rfc3339 == DateTime.new( 2015, 03, 04, 15, 00, 00, 'PST' ).strftime('%FT%T')
=> false
Actions
Like0
Like0Like0Like0Like0Like0Like0