Method: DateTime#offset

Defined in:
ext/date/date_core.c

#offsetObject

Returns the offset.

DateTime.parse('04pm+0730').offset  #=> (5/16)


5645
5646
5647
5648
5649
5650
# File 'ext/date/date_core.c', line 5645

static VALUE
d_lite_offset(VALUE self)
{
    get_d1(self);
    return m_of_in_day(dat);
}