From 7e99c58de1e2b773b624cddf175bd29da584a385 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:30:26 +0200 Subject: [PATCH 1/4] Update datetime.rst --- Doc/library/datetime.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 59e2dbd6847538..76d08909cc534a 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -934,6 +934,10 @@ Other constructors, all class methods: This function is preferred over :meth:`today` and :meth:`utcnow`. + .. warning:: + + It's possible that subsequent ``datetime.now()`` return the same instant, + depending on the precision of the underlying functions. .. classmethod:: datetime.utcnow() From 6c5527b386df7433a0ffc14bfb069ac3d0f9c20e Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:32:53 +0200 Subject: [PATCH 2/4] Update datetime.rst replace warning with note --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 76d08909cc534a..32241850d1fd22 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -934,7 +934,7 @@ Other constructors, all class methods: This function is preferred over :meth:`today` and :meth:`utcnow`. - .. warning:: + .. note:: It's possible that subsequent ``datetime.now()`` return the same instant, depending on the precision of the underlying functions. From 8827233538f12c56641d43fb00530998a1959ae6 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:35:53 +0200 Subject: [PATCH 3/4] Update Doc/library/datetime.rst Co-authored-by: Victor Stinner --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 32241850d1fd22..750aea138a4f9f 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -937,7 +937,7 @@ Other constructors, all class methods: .. note:: It's possible that subsequent ``datetime.now()`` return the same instant, - depending on the precision of the underlying functions. + depending on the precision of the underlying clock. .. classmethod:: datetime.utcnow() From 85f1776df8948ddfd17377bbb79f477a785ecaa9 Mon Sep 17 00:00:00 2001 From: spacemanspiff2007 <10754716+spacemanspiff2007@users.noreply.github.com> Date: Fri, 4 Oct 2024 05:45:27 +0200 Subject: [PATCH 4/4] Update Doc/library/datetime.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- Doc/library/datetime.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 750aea138a4f9f..affdba24c363cf 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -936,8 +936,8 @@ Other constructors, all class methods: .. note:: - It's possible that subsequent ``datetime.now()`` return the same instant, - depending on the precision of the underlying clock. + Subsequent calls to :meth:`!datetime.now` may return the same + instant depending on the precision of the underlying clock. .. classmethod:: datetime.utcnow()