mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Tell people the *new* behaviour, not just the old behaviour
This commit is contained in:
parent
c4bacd3646
commit
3658cb3012
1 changed files with 1 additions and 1 deletions
|
@ -1121,7 +1121,7 @@ datetime
|
||||||
--------
|
--------
|
||||||
|
|
||||||
* Equality comparisons between naive and aware :class:`~datetime.datetime`
|
* Equality comparisons between naive and aware :class:`~datetime.datetime`
|
||||||
instances don't raise :exc:`TypeError`.
|
instances now return :const:`False` instead of raising :exc:`TypeError`.
|
||||||
* New :meth:`datetime.datetime.timestamp` method: Return POSIX timestamp
|
* New :meth:`datetime.datetime.timestamp` method: Return POSIX timestamp
|
||||||
corresponding to the :class:`~datetime.datetime` instance.
|
corresponding to the :class:`~datetime.datetime` instance.
|
||||||
* The :meth:`datetime.datetime.strftime` method supports formatting years
|
* The :meth:`datetime.datetime.strftime` method supports formatting years
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue