class method
self.us_zones
Ruby on Rails 3.1.12
Since v2.2.3Signature
self.us_zones()
A convenience method for returning a collection of TimeZone objects for time zones in the USA.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 371
def us_zones
@us_zones ||= all.find_all { |z| z.name =~ /US|Arizona|Indiana|Hawaii|Alaska/ }
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 371
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone