method

offset

ruby latest stable - Class: DateTime

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

offset()
public

Returns the offset.

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