From a4e89e4146ef5cd32d70219961d3a655491bc670 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 14 Dec 2024 19:30:44 -0500 Subject: [PATCH] Typo --- win32/Lib/win32timezone.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win32/Lib/win32timezone.py b/win32/Lib/win32timezone.py index a6cc75a1b8..21d837de84 100644 --- a/win32/Lib/win32timezone.py +++ b/win32/Lib/win32timezone.py @@ -924,11 +924,11 @@ def now() -> datetime.datetime: by this module >>> now_local = now() - >>> (now - datetime.datetime.now()) < datetime.timedelta(seconds = 5) + >>> (now_local - datetime.datetime.now()) < datetime.timedelta(seconds = 5) True - >>> (now - datetime.datetime.utcnow()) < datetime.timedelta(seconds = 5) # deprecated + >>> (now_local - datetime.datetime.utcnow()) < datetime.timedelta(seconds = 5) # deprecated True - >>> (now - datetime.datetime.now(datetime.timezone.utc)) < datetime.timedelta(seconds = 5) + >>> (now_local - datetime.datetime.now(datetime.timezone.utc)) < datetime.timedelta(seconds = 5) True """ return datetime.datetime.now(TimeZoneInfo.local())