Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Time > day

instance method Time#day

mday -> Integer
day -> Integer

日を整数で返します。

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