diff options
author | Guy Yagev <yourlefthandman8@gmail.com> | 2022-07-18 19:31:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 19:31:17 (GMT) |
commit | fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269 (patch) | |
tree | 86fb951c23c83b2446c289169d45492d6ca19655 /Doc | |
parent | a25a803c4c452c70da11be3e80004b47646bff4c (diff) | |
download | cpython-fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269.zip cpython-fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269.tar.gz cpython-fc0dc9203d6ed03a5f3f3d0bed16ecda16e04269.tar.bz2 |
Fix documentation to include possible Exception (#94818)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/datetime.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index ef1535c..710f83c 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1370,8 +1370,8 @@ Instance methods: time and this method relies on the platform C :c:func:`mktime` function to perform the conversion. Since :class:`.datetime` supports wider range of values than :c:func:`mktime` on many - platforms, this method may raise :exc:`OverflowError` for times far - 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. For aware :class:`.datetime` instances, the return value is computed as:: |