Method: TZInfo::Timezone.all_country_zone_identifiers
- Defined in:
- lib/tzinfo/timezone.rb
.all_country_zone_identifiers ⇒ Object
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.
179 180 181 182 183 |
# File 'lib/tzinfo/timezone.rb', line 179 def self.all_country_zone_identifiers Country.all_codes.inject([]) do |zones,country| zones += Country.get(country).zone_identifiers end.uniq end |