Method: TZInfo::TimeWithOffset#zone
- Defined in:
- lib/tzinfo/time_with_offset.rb
#zone ⇒ String
An overridden version of Time#zone that, if there is an associated
TZInfo::TimezoneOffset, returns the abbreviation
of that offset.
123 124 125 126 |
# File 'lib/tzinfo/time_with_offset.rb', line 123 def zone to = timezone_offset to ? to.abbreviation : super end |