def roundtrip(x):
    return time.mktime(datetime.datetime.fromtimestamp(x).timetuple())
roundtrip(2 ** 31 - 1 - 7200)
roundtrip(2 ** 31 - 7200)
Is it possible for a round-trip through Python's mktime to fail with 'out of range'?