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

instance method DateTime#hour

hour -> Integer[permalink][rdoc]

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