We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25a803 commit fc0dc92Copy full SHA for fc0dc92
Doc/library/datetime.rst
@@ -1370,8 +1370,8 @@ Instance methods:
1370
time and this method relies on the platform C :c:func:`mktime`
1371
function to perform the conversion. Since :class:`.datetime`
1372
supports wider range of values than :c:func:`mktime` on many
1373
- platforms, this method may raise :exc:`OverflowError` for times far
1374
- in the past or far in the future.
+ platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
+ for times far in the past or far in the future.
1375
1376
For aware :class:`.datetime` instances, the return value is computed
1377
as::
0 commit comments