from datetime import datetime


def timestamp2date(timestamp: int) -> datetime:
    """
    Converts a UNIX timestamp in milliseconds to a UTC date.

    >>> timestamp2date(0)
    datetime.datetime(1970, 1, 1, 1, 0)
    >>> timestamp2date(24*3600*1000)
    datetime.datetime(1970, 1, 2, 1, 0)
    """
    return datetime.fromtimestamp(timestamp / 1000.0)