File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments