Method: TZInfo::TimeWithOffset#zone

Defined in:
lib/tzinfo/time_with_offset.rb

#zoneString

An overridden version of Time#zone that, if there is an associated TZInfo::TimezoneOffset, returns the abbreviation of that offset.

Returns:



123
124
125
126
# File 'lib/tzinfo/time_with_offset.rb', line 123

def zone
  to = timezone_offset
  to ? to.abbreviation : super
end