from datetime import datetime


def struct_time_to_datetime(st):
    """
    Return a `datetime.datetime` representing the provided `struct_time.

    WARNING: This will fail for dates with years before 1 AD or after 9999 AD.
    """
    return datetime(*st[:6])