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

instance method DateTime#hour

hour -> Integer

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

class DateTime