[issue46856] datetime.max conversion
Joris Geysens
report at bugs.python.org
Fri Feb 25 13:41:13 EST 2022
Joris Geysens <joris.geysens at enervalis.com> added the comment:
a ValueError is raised :
ValueError: year 10000 is out of range
on
dt = datetime.fromtimestamp(ts, tz=timezone.utc)
or
dt = datetime.utcfromtimestamp(ts)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46856>
_______________________________________
More information about the Python-bugs-list
mailing list