if timestamp >= 0:
    return dt.datetime.fromtimestamp(timestamp)
else:
    return dt.datetime(1970, 1, 1) + dt.timedelta(seconds=int(timestamp))
On Windows, how to convert a timestamps BEFORE 1970 into something manageable?