Actions
Bug #6835
closedRdoc for DateTime#strftime('%Q') says 'microseconds' instead if 'milliseconds'
Description
=begin
The patch fixes wrong rdoc for %Q, which returns the number of ((milli))seconds since the unix epoch, not ((micro))seconds.
(This is also the expected behavior according to the tests in test/date/test_date_strftime.rb)
This affects also Ruby 1.8.
1.9.3p194 :001 > require 'date'
1.9.3p194 :002 > d = DateTime.parse('1970-01-01T00:00:05.123456+00:00')
=> #<DateTime: 1970-01-01T00:00:05+00:00 ((2440588j,5s,123456000n),+0s,2299161j)>
1.9.3p194 :003 > d.strftime('%s')
=> "5"
1.9.3p194 :004 > d.strftime('%Q')
=> "5123"
=end
Files
Actions
Like0
Like0Like0