Forum: Ruby-dev Date#inspect

7ba986527f038e423b450ff7c07e7036?d=identicon&s=25 ergocca001 (ergo cca) (Guest)
on 2012-10-31 09:22
(Received via mailing list)
Issue #735 has been updated by ergocca001 (ergo cca).

File QQ截图20120504205207.png added

ergo baby carrier  http://www.ergobabycarrier-nz.com/
ergo baby carrier  nz  http://www.ergobabycarrier-nz.com/
ergo baby carrier  http://www.ergobabycarrierca.ca/
ergo baby carrier canada  http://www.ergobabycarrierca.ca/
ergo baby carrier  http://www.ergobabysale.eu/
Ergo Baby sale UK  http://www.ergobabysale.eu/

----------------------------------------
Feature #735: Date#inspect
https://bugs.ruby-lang.org/issues/735#change-32075

Author: rubikitch (rubikitch .)
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:


=begin
 「inspectは人間に優しい文字列化」という観点から、Date#inspectの出力はふさわしくないと思います。
 #<Date: 2008-11-10> やら #<DateTime 2008-11-10T05:22:03+09:00>
のほうがわかりやすいです。

 require 'date'
 Date.today         # => #<Date: 4909561/2,0,2299161>
 Date.today.to_s    # => "2008-11-10"
 DateTime.now       # => #<DateTime:
2120930221235025923/864000000000,3/8,2299161>
 DateTime.now.to_s  # => "2008-11-10T05:22:03+09:00"
=end
This topic is locked and can not be replied to.