File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1475,11 +1475,11 @@ Instance methods:
14751475 returned by :func: `time.time `.
14761476
14771477 Naive :class: `.datetime ` instances are assumed to represent local
1478- time and this method relies on the platform C :c:func: ` mktime `
1479- function to perform the conversion. Since :class: `!datetime `
1480- supports wider range of values than :c:func: ` mktime ` on many
1481- platforms, this method may raise :exc: `OverflowError ` or :exc: `OSError `
1482- for times far in the past or far in the future.
1478+ time and this method relies on platform C functions to perform
1479+ the conversion. Since :class: `!datetime ` supports a wider range of
1480+ values than the platform C functions on many platforms, this
1481+ method may raise :exc: `OverflowError ` or :exc: `OSError ` for times
1482+ far in the past or far in the future.
14831483
14841484 For aware :class: `.datetime ` instances, the return value is computed
14851485 as::
@@ -1492,6 +1492,10 @@ Instance methods:
14921492 The :meth: `timestamp ` method uses the :attr: `.fold ` attribute to
14931493 disambiguate the times during a repeated interval.
14941494
1495+ .. versionchanged :: 3.6
1496+ This method no longer relies on the platform C :c:func: `mktime `
1497+ function to perform conversions.
1498+
14951499 .. note ::
14961500
14971501 There is no method to obtain the POSIX timestamp directly from a
You can’t perform that action at this time.
0 commit comments