summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-03-16 10:12:50 (GMT)
committerGitHub <noreply@github.com>2022-03-16 10:12:50 (GMT)
commit4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc (patch)
tree5dcc38fdeacf3616f42f4f2d89acdea87a13ec1a /Python/pythonrun.c
parent2b97cfdce8df9d0d455f65a22b1e0d34a29dc200 (diff)
downloadcpython-4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc.zip
cpython-4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc.tar.gz
cpython-4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc.tar.bz2
bpo-31327: Update time documentation to reflect possible errors (GH-31460) (GH-31827)
As per the comments, this mirrors the [datetime documentation](https://docs.python.org/3/library/datetime.htmlGH-datetime.datetime.fromtimestamp). ``` >>> 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 c83fc9c02c9846ec3a2d0123999c98e02f00b3f5) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions