import time
from datetime import datetime


def struct_to_datetime(struct: time.struct_time) -> datetime:
    """Return datetime from time.struc_time."""
    return datetime.fromtimestamp(time.mktime(struct))