from datetime import datetime


def recast_timestamp(ms: int):
    """Recast millisecond epoch offsets to DateTime"""
    try:
        return datetime.fromtimestamp(ms / 1000.0)

    except TypeError:
        return None