class method
self.all_country_zone_identifiers
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.all_country_zone_identifiers()
Returns all the zone identifiers defined for all Countries. This is not the complete set of zone identifiers as some are not country specific (e.g. ‘Etc/GMT’). You can obtain a Timezone instance for a given identifier with the get method.
Source
# File activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb, line 197
def self.all_country_zone_identifiers
Country.all_codes.inject([]) {|zones,country|
zones += Country.get(country).zone_identifiers
}
end
Defined in activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb line 197
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TZInfo::Timezone