<filename>utils/time.py
import datetime


DISCORD_EPOCH = 1420070400000
MAX_ASYNCIO_SECONDS = 3456000


def snowflake_time(id: int) -> datetime.datetime:
    """
    :param id:  The ID we want to convert.
    :return:    :class:`datetime.datetime` instance.
    """
    return datetime.datetime.utcfromtimestamp(((id >> 22) + DISCORD_EPOCH) / 1000)

<filename>utils/time.py
import datetime


DISCORD_EPOCH = 1420070400000
MAX_ASYNCIO_SECONDS = 3456000


def snowflake_time(id: int) -> datetime.datetime:
    """
    :param id:  The ID we want to convert.
    :return:    :class:`datetime.datetime` instance.
    """
    return datetime.datetime.utcfromtimestamp(((id >> 22) + DISCORD_EPOCH) / 1000)

:param id:  The ID we want to convert.     :return:    :class:`datetime.datetime` instance.