def GetIndexedTimeZoneNames(index_key='Index'):
 for timeZoneName in GetTimeZoneNames():
  tzRegKeyPath = os.path.join(TimeZoneInfo.tzRegKey, timeZoneName)
  key = _winreg.OpenKeyEx(_winreg.HKEY_LOCAL_MACHINE, tzRegKeyPath)
  (tzIndex, type) = _winreg.QueryValueEx(key, index_key)
  (yield (tzIndex, timeZoneName))

def GetIndexedTimeZoneNames ( index_key = 'Index' ) : for timeZoneName in GetTimeZoneNames ( ) : tzRegKeyPath = os . path . join ( TimeZoneInfo . tzRegKey , timeZoneName ) key = _winreg . OpenKeyEx ( _winreg . HKEY_LOCAL_MACHINE , tzRegKeyPath ) ( tzIndex , type ) = _winreg . QueryValueEx ( key , index_key ) ( yield ( tzIndex , timeZoneName ) )
returns the names of the time zones as defined in the registry .