class method
self.all
Ruby on Rails 4.2.9
Since v2.2.3Signature
self.all()
Returns an array of all TimeZone objects. There are multiple TimeZone objects per time zone, in many cases, to make it easier for users to find their own time zone.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 223
def all
@zones ||= zones_map.values.sort
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 223
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone