from datetime import datetime


def date_from_archive(time: int) -> datetime:
    """
    Archive.org has dates in this format: 20100527121226,
    where the date is 2010-05-27
    """
    time_str = str(time)
    return datetime(
        int(time_str[:4]),
        int(time_str[4:6]),
        int(time_str[6:8]),
        int(time_str[8:10]),
        int(time_str[10:12]),
    )