code: def convert_time_string(date_str):
      
      dt, _, _ = date_str.partition(".")
      dt = datetime.strptime(dt, "%Y-%m-%dT%H:%M:%S")
      return dt
docs: Change a date string from the format 2018-08-15T23:55:17 into a datetime object