[ruby-core:63875] [ruby-trunk - Bug #10049] RDoc bug for time format

From: sawadatsuyoshi@...
Date: 2014-07-19 14:22:57 UTC
List: ruby-core #63875
Issue #10049 has been updated by Tsuyoshi Sawada.


> However, the documentation for Time.strptime says, simply:
> %Y :: Year with century

Actually, I cannot find such description. I searched in these docs:

* Ruby 1.9.3 Time (http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Time.html)
* Ruby 1.9.3 Date (http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html)
* Ruby 1.9.3 DateTime (http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html#method-c-strptime)
* Ruby 2.1.1 Time (http://ruby-doc.org/stdlib-2.1.1/libdoc/date/rdoc/Time.html)
* Ruby 2.1.1 Date (http://ruby-doc.org/stdlib-2.1.1/libdoc/date/rdoc/Date.html)
* Ruby 2.1.1 DateTime (http://ruby-doc.org/stdlib-2.1.1/libdoc/date/rdoc/DateTime.html)

but not of them has such description. Am I looking in the wrong place?

----------------------------------------
Bug #10049: RDoc bug for time format
https://bugs.ruby-lang.org/issues/10049#change-47899

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.1.1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
A bug report https://bugs.ruby-lang.org/issues/8941 notes a contradiction between RDoc and Ruby behavior. If tadayoshi funaba is correct and `%Y` should be able to accept digits less than four, then the following RDoc description is a bug, and should be corrected.

    %Y - Year with century (can be negative, 4 digits at least)



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next