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

instance method DateTime#hour

hour -> Integer[permalink][rdoc]

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