Date#inspect

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs