def extract_datetime_str(line):
    """
    Construct string containing recon-all stage date and time from a log string,
    for easier parsing with datetime functions.
    (Example: "#@# STAGE_NAME Sun Nov 14 12:31:34 UTC 2021" --> "Nov 14 2021 12:31:34")

    :param str line: line in recon-surf.log containing recon-all stage info.
        This must be of the form:
        #@# STAGE_NAME Fri Nov 26 15:51:40 UTC 2021

    :return: str datetime_str: extracted datetime string
    """
    datetime_str = line.split(' ')[-5] + ' ' + \
                   line.split(' ')[-4] + ' ' + \
                   line.split(' ')[-1] + ' ' + \
                   line.split(' ')[-3]

    return datetime_str