Author Michael.Felt
Recipients David.Edelsohn, EGuesnet, Michael.Felt, miss-islington, vstinner
Date 2020-03-26.09:42:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <9ff70077-4de6-47dc-724d-a4c9a65e1678@felt.demon.nl>
In-reply-to <1581098238.71.0.874788336167.issue39502@roundup.psfhosted.org>
Content
My apologies for the late reply -

Here is 3.6.10:

Python 3.6.10 (default, Mar 24 2020, 14:12:31) [C] on aix5
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.gmtime(4386268800)
time.struct_time(tm_year=2108, tm_mon=12, tm_mday=30, tm_hour=0,
tm_min=0, tm_sec=0, tm_wday=6, tm_yday=365, tm_isdst=0)

And, a patched 3.9:

root@x064:[/data/prj/python/python-3.9]./python
Python 3.9.0a4+ (default, Mar 13 2020, 08:03:36) [C] on aix
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.gmtime(4386268800)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: timestamp out of range for platform time_t

So, it should be working - but is not after the patches. I'll work on an
update asap.

On 07/02/2020 18:57, STINNER Victor wrote:
> STINNER Victor <vstinner@python.org> added the comment:
>
> Does time.gmtime() accept year after 2038 on 64-bit AIX? Example on Linux:
>
>>>> time.gmtime(4386268800)
> time.struct_time(tm_year=2108, tm_mon=12, tm_mday=30, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=365, tm_isdst=0)
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue39502>
> _______________________________________
>
History
Date User Action Args
2020-03-26 09:42:37Michael.Feltsetrecipients: + Michael.Felt, vstinner, David.Edelsohn, miss-islington, EGuesnet
2020-03-26 09:42:37Michael.Feltlinkissue39502 messages
2020-03-26 09:42:36Michael.Feltcreate