Skip to content
Snippets Groups Projects
Select Git revision
  • 4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc
  • main default protected
  • 3.10
  • 3.11
  • revert-15688-bpo-38031-_io-FileIO-opener-crash
  • 3.8
  • 3.9
  • 3.7
  • enum-fix_auto
  • branch-v3.11.0
  • backport-c3648f4-3.11
  • gh-93963/remove-importlib-resources-abcs
  • refactor-wait_for
  • shared-testcase
  • v3.12.0a2
  • v3.12.0a1
  • v3.11.0
  • v3.8.15
  • v3.9.15
  • v3.10.8
  • v3.7.15
  • v3.11.0rc2
  • v3.8.14
  • v3.9.14
  • v3.7.14
  • v3.10.7
  • v3.11.0rc1
  • v3.10.6
  • v3.11.0b5
  • v3.11.0b4
  • v3.10.5
  • v3.11.0b3
  • v3.11.0b2
  • v3.9.13
34 results

cpython

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Miss Islington (bot) authored and GitHub committed
    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 c83fc9c0)
    
    Co-authored-by: default avatarslateny <46876382+slateny@users.noreply.github.com>
    4d8e08b2
    History
    Name Last commit Last update