This method is only available on newer versions. The first available version (v2_6_3) is shown here.
hour()
Returns the hour (0-23).
DateTime.new(2001,2,3,4,5,6).hour #=> 4
static VALUE d_lite_hour(VALUE self) { get_d1(self); return INT2FIX(m_hour(dat)); }