code: def parse_time(time):
      
      if isinstance(time, datetime.datetime):
          return time
      return datetime.datetime.strptime(time, DATETIME_FORMAT_OPENVPN)
docs: Parses date and time from input string in OpenVPN logging format.