Running this code snippet will cause a crash. This happens for a range of numbers around this one as well:
I don't know where this crash is coming from, so it might be in the C++ code rather than the Python bindings.
For other extreme numbers you get the wrong result. It looks like something is overflowing. Here is the input and result for a few different examples:
- -2000000000 -> 31179-12-27
- -1000000000 -> 16574-12-29
- 2000000000 -> -27240-01-06
- 1000000000 -> -12635-01-03
I would prefer if these gave errors rather than silently overflowing.