https://github.com/python/cpython/commit/760b1e103a0aa696cdf448e0d500cd1bac2213fa commit: 760b1e103a0aa696cdf448e0d500cd1bac2213fa branch: main author: spacemanspiff2007 <[email protected]> committer: willingc <[email protected]> date: 2024-10-08T11:17:53-07:00 summary:
gh-124832: Add a note to indicate that `datetime.now` may return the same instant (#124834) * Update datetime.rst * Update datetime.rst replace warning with note * Update Doc/library/datetime.rst Co-authored-by: Victor Stinner <[email protected]> * Update Doc/library/datetime.rst Co-authored-by: Bénédikt Tran <[email protected]> --------- Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> files: M Doc/library/datetime.rst diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 64510a77c67c11..f0b465bc9ce39c 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -948,6 +948,10 @@ Other constructors, all class methods: This function is preferred over :meth:`today` and :meth:`utcnow`. + .. note:: + + Subsequent calls to :meth:`!datetime.now` may return the same + instant depending on the precision of the underlying clock. .. classmethod:: datetime.utcnow() _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
