diff --git a/08.Decorators/decorators-2.py b/08.Decorators/decorators-2.py index a040a6c..57dc324 100644 --- a/08.Decorators/decorators-2.py +++ b/08.Decorators/decorators-2.py @@ -9,9 +9,9 @@ def my_decorator(inner): def inner_decorator(): - print(datetime.datetime.utcnow()) + print(datetime.now(datetime.UTC)) inner() - print(datetime.datetime.utcnow()) + print(datetime.now(datetime.UTC)) return inner_decorator @@ -30,4 +30,4 @@ def decorated(): 2022-07-16 12:24:18.704572 This happened! 2022-07-16 12:24:18.704572 -''' \ No newline at end of file +''' diff --git a/08.Decorators/decorators-3.py b/08.Decorators/decorators-3.py index ef38717..3b42962 100644 --- a/08.Decorators/decorators-3.py +++ b/08.Decorators/decorators-3.py @@ -12,9 +12,9 @@ def my_decorator(inner): def inner_decorator(num_copy): - print(datetime.datetime.utcnow()) + print(datetime.now(datetime.UTC)) inner(int(num_copy) + 1) - print(datetime.datetime.utcnow()) + print(datetime.now(datetime.UTC)) return inner_decorator @@ -32,4 +32,4 @@ def decorated(number): 2022-07-16 12:26:14.060603 This happened : 6 2022-07-16 12:26:14.060603 -''' \ No newline at end of file +''' pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy