Skip to content

Commit 9b70a5a

Browse files
Update datetime.rst
1 parent 516fa84 commit 9b70a5a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/library/datetime.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,13 @@ Instance methods:
14851485
instance. The return value is a :class:`float` similar to that
14861486
returned by :func:`time.time`.
14871487

1488+
Naive :class:`.datetime` instances are assumed to represent local
1489+
time and this method relies on the platform C :c:func:`locatime_s`
1490+
function to perform the conversion. Since :class:`.datetime`
1491+
supports wider range of values than :c:func:`locatime_s` on many
1492+
platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
1493+
for times far in the past or far in the future.
1494+
14881495
For aware :class:`.datetime` instances, the return value is computed
14891496
as::
14901497

0 commit comments

Comments
 (0)