Project

General

Profile

Actions

Bug #6902

closed

Ruby DateTime Documentation Errata

Added by tobiasoleary (Tobias O'Leary) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p194
Backport:
[ruby-core:47266]

Description

DateTime documentation has a slight error.

See http://www.ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html

The documents lists this expression and it's corresponding value:
DateTime.new(2001,2,3,4,5,6,'+03:00')
#=> #<DateTime: 2001-02-03T03:04:05+03:00 ...>

This is incorrect running in irb I receive this:
irb(main):004:0> DateTime.new(2001,2,3,4,5,6,'+03:00')
=> #<DateTime: 2001-02-03T04:05:06+03:00 ...>

Notice the hours differ.

Actions

Also available in: Atom PDF

Like0
Like0