Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
datetime.UTC
1 parent 7335f0a commit 185c7acCopy full SHA for 185c7ac
Lib/datetime.py
@@ -2290,7 +2290,8 @@ def _name_from_offset(delta):
2290
return f'UTC{sign}{hours:02d}:{minutes:02d}:{seconds:02d}'
2291
return f'UTC{sign}{hours:02d}:{minutes:02d}'
2292
2293
-UTC = timezone.utc = timezone._create(timedelta(0))
+timezone.utc = timezone._create(timedelta(0))
2294
+
2295
# bpo-37642: These attributes are rounded to the nearest minute for backwards
2296
# compatibility, even though the constructor will accept a wider range of
2297
# values. This may change in the future.
@@ -2514,3 +2515,5 @@ def _name_from_offset(delta):
2514
2515
# appropriate to maintain a single module level docstring and
2516
# remove the following line.
2517
from _datetime import __doc__
2518
2519
+UTC = timezone.utc
0 commit comments