def _extract_time(self, time_string, possible_formats):
        """Returns date data contained in a string.

        Args:
          time_string: String representing a date and/or time.
          possible_formats: List of possible formats "time" may be in.

        Returns:
          Tuple of (datetime, format) with the datetime object populated by data
          found in "time" according to the returned format, or (None, None)
          if no formats matched.
        """
        for time_format in possible_formats:
            try:
                date = datetime.datetime.strptime(time_string, time_format)
            except __HOLE__, err:
                continue
            else:
                return date, time_format
        return None, None
dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/calendar/date.py/DateParser._extract_time