There was an error while loading. Please reload this page.
1 parent 516fa84 commit 9b70a5aCopy full SHA for 9b70a5a
1 file changed
Doc/library/datetime.rst
@@ -1485,6 +1485,13 @@ Instance methods:
1485
instance. The return value is a :class:`float` similar to that
1486
returned by :func:`time.time`.
1487
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
+
1495
For aware :class:`.datetime` instances, the return value is computed
1496
as::
1497
0 commit comments