Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library date > class DateTime > hour

instance method DateTime#hour

hour -> Integer

時間を返します (0-23)。