def country_timezones(iso3166_code):
 iso3166_code = iso3166_code.upper()
 if (not _country_timezones_cache):
  zone_tab = open_resource('zone.tab')
  for line in zone_tab:
   if line.startswith('#'):
    continue
   (code, coordinates, zone) = line.split(None, 4)[:3]
   try:
    _country_timezones_cache[code].append(zone)
   except KeyError:
    _country_timezones_cache[code] = [zone]
 return _country_timezones_cache[iso3166_code]

def country_timezones ( iso3166_code ) : iso3166_code = iso3166_code . upper ( ) if ( not _country_timezones_cache ) : zone_tab = open_resource ( 'zone.tab' ) for line in zone_tab : if line . startswith ( '#' ) : continue ( code , coordinates , zone ) = line . split ( None , 4 ) [ : 3 ] try : _country_timezones_cache [ code ] . append ( zone ) except KeyError : _country_timezones_cache [ code ] = [ zone ] return _country_timezones_cache [ iso3166_code ]
return a list of timezones used in a particular country .