File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1502,11 +1502,11 @@ Instance methods:
1502
1502
returned by :func: `time.time `.
1503
1503
1504
1504
Naive :class: `.datetime ` instances are assumed to represent local
1505
- time and this method relies on the platform C :c:func: ` mktime `
1506
- function to perform the conversion. Since :class: `.datetime `
1507
- supports wider range of values than :c:func: ` mktime ` on many
1508
- platforms, this method may raise :exc: `OverflowError ` or :exc: `OSError `
1509
- for times far in the past or far in the future.
1505
+ time and this method relies on platform C functions to perform
1506
+ the conversion. Since :class: `.datetime ` supports a wider range of
1507
+ values than the platform C functions on many platforms, this
1508
+ method may raise :exc: `OverflowError ` or :exc: `OSError ` for times
1509
+ far in the past or far in the future.
1510
1510
1511
1511
For aware :class: `.datetime ` instances, the return value is computed
1512
1512
as::
@@ -1519,6 +1519,10 @@ Instance methods:
1519
1519
The :meth: `timestamp ` method uses the :attr: `.fold ` attribute to
1520
1520
disambiguate the times during a repeated interval.
1521
1521
1522
+ .. versionchanged :: 3.6
1523
+ This method no longer relies on the platform C :c:func: `mktime `
1524
+ function to perform conversions.
1525
+
1522
1526
.. note ::
1523
1527
1524
1528
There is no method to obtain the POSIX timestamp directly from a
You can’t perform that action at this time.
0 commit comments