このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 2.2.0 リファレンスマニュアル

instance method Time#day

mday -> Integer[permalink][rdoc]
day -> Integer

日を整数で返します。

p Time.local(2000, 1, 1).day #=> 1