From acb007b4b5ba8510dae209d692803ea4c65814fe Mon Sep 17 00:00:00 2001 From: Antonio Guerrero Date: Wed, 29 Jul 2020 18:41:47 -0500 Subject: [PATCH] Challenge solved --- challenge.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/challenge.py b/challenge.py index c69287d..f6acff2 100644 --- a/challenge.py +++ b/challenge.py @@ -1,8 +1,11 @@ import time - -def finish_date(): - # You have to code here!! +def finish_date(func): + def wrapper(*args, **kwargs): + func(*args, **kwargs) + _time = time.gmtime() + print(f'The function {func.__name__} finished at {time.strftime("%d/%m/%Y - %H:%M:%S", _time)}') + return wrapper @finish_date