from datetime import datetime


def igorpro_date(timestamp):
    """Convert an IgorPro timestamp (seconds since 1904-01-01) to a datetime
    object.
    """
    dt = datetime(1970,1,1) - datetime(1904,1,1)
    return datetime.utcfromtimestamp(timestamp) - dt