Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Dec 15, 2024
1 parent 92e7f0e commit a4e89e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions win32/Lib/win32timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a4e89e4

Please sign in to comment.