[ruby-core:75127] [Ruby trunk Misc#12310] ctime vs asctime - Documentation Issue? - http://ruby-doc.org/core-2.3.0/Time.html

From: mcginn.robert@...
Date: 2016-04-22 10:55:01 UTC
List: ruby-core #75127
Issue #12310 has been updated by Robert McGinn.

Tracker changed from Bug to Misc

----------------------------------------
Misc #12310: ctime vs asctime - Documentation Issue? - http://ruby-doc.org/core-2.3.0/Time.html
https://bugs.ruby-lang.org/issues/12310#change-58258

* Author: Robert McGinn
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
All,

I was working through the Time Class documentation at http://ruby-doc.org/core-2.3.0/Time.html.

I noted a potential typo in the example code as per below.

~~~
**ctime** → string click to toggle source
Returns a canonical string representation of time.

Time.now.**asctime**   #=> "Wed Apr  9 08:56:03 2003"

~~~


The example code references a separate method (asctime) as oppose to ctime.

Running "methods" on a time object does reference two separate methods:-

asctime
ctime

I did a search and could not find a bug relating to this.

Best regards,

Robert

 



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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next