def _parse_date_time_time_zone(self, date_time_time_zone):
if date_time_time_zone is None:<EOL><INDENT>return None<EOL><DEDENT>local_tz = self.protocol.timezone<EOL>if isinstance(date_time_time_zone, dict):<EOL><INDENT>try:<EOL><INDENT>timezone = pytz.timezone(<EOL>get_iana_tz(date_time_time_zone.get(self._cc('<STR_LIT>'), '<STR_LIT>')))<EOL><DEDENT>except pytz.UnknownTimeZoneError:<EOL><INDENT>timezone = local_tz<EOL><DEDENT>date_time = date_time_time_zone.get(self._cc('<STR_LIT>'), None)<EOL>try:<EOL><INDENT>date_time = timezone.localize(parse(date_time)) if date_time else None<EOL><DEDENT>except OverflowError as e:<EOL><INDENT>log.debug('<STR_LIT>'.format(date_time_time_zone, str(e)))<EOL>date_time = None<EOL><DEDENT>if date_time and timezone != local_tz:<EOL><INDENT>date_time = date_time.astimezone(local_tz)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>date_time = local_tz.localize(parse(date_time_time_zone)) if date_time_time_zone else None<EOL><DEDENT>except Exception as e:<EOL><INDENT>log.debug('<STR_LIT>'.format(date_time_time_zone, str(e)))<EOL>date_time = None<EOL><DEDENT><DEDENT>return date_time<EOL>
Parses and convert to protocol timezone a dateTimeTimeZone resource
        This resource is a dict with a date time and a windows timezone
        This is a common structure on Microsoft apis so it's included here.