Project

General

Profile

Feature #735

Date#inspect

Added by rubikitch (rubikitch .) almost 12 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-dev:37050]

Description

=begin
「inspectは人間に優しい文字列化」という観点から、Date#inspectの出力はふさわしくないと思います。
# やら # のほうがわかりやすいです。

require 'date'
Date.today # => #
Date.today.to_s # => "2008-11-10"
DateTime.now # => #
DateTime.now.to_s # => "2008-11-10T05:22:03+09:00"
=end

Also available in: Atom PDF