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())