Skip to content

Commit 516fa84

Browse files
Clean up timestamp docs
1 parent b528669 commit 516fa84

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Doc/library/datetime.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,13 +1485,6 @@ 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:`mktime`
1490-
function to perform the conversion. Since :class:`.datetime`
1491-
supports wider range of values than :c:func:`mktime` 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-
14951488
For aware :class:`.datetime` instances, the return value is computed
14961489
as::
14971490

@@ -1503,6 +1496,10 @@ Instance methods:
15031496
The :meth:`timestamp` method uses the :attr:`.fold` attribute to
15041497
disambiguate the times during a repeated interval.
15051498

1499+
.. versionchanged:: 3.6
1500+
This method no longer relies on the platform C :c:func:`mktime`
1501+
function to perform conversions.
1502+
15061503
.. note::
15071504

15081505
There is no method to obtain the POSIX timestamp directly from a

0 commit comments

Comments
 (0)