def timestamp_to_datetime(timestamp):
    """
    Takes a timestamp and returns
    a datetime.
    """
    return datetime.datetime.fromtimestamp(timestamp / 1000.0).replace(tzinfo=pytz.UTC)
dataset/ETHPy150Open dionyziz/ting/API/chat/utils.py/timestamp_to_datetime/original