...">

[3.10] bpo-31327: Update time documentation to reflect possible errors (GH-31460) by miss-islington · Pull Request #31825 · python/cpython (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation4 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

miss-islington

@slateny @miss-islington

…onGH-31460)

As per the comments, this mirrors the datetime documentation.

>>> import time
>>> time.localtime(999999999999999999999)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: timestamp out of range for platform time_t
>>> time.localtime(-3600)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument

(cherry picked from commit c83fc9c)

Co-authored-by: slateny 46876382+slateny@users.noreply.github.com

@miss-islington

@slateny: Status check is done, and it's a failure ❌ .

@miss-islington

@slateny: Status check is done, and it's a success ✅ .

pganssle

@miss-islington

@slateny: Status check is done, and it's a success ✅ .

@miss-islington

@slateny: Status check is done, and it's a success ✅ .