method

zone

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.

zone()
public

Returns the timezone.

DateTime.parse('04pm+0730').zone          #=> "+07:30"