From a946877ad394cbf8fd45d7d45ed4c8985a35a369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Olvera=20Vital?= Date: Wed, 6 May 2020 19:14:48 -0500 Subject: [PATCH] challenge solved --- challenge.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/challenge.py b/challenge.py index c69287d..55fd516 100644 --- a/challenge.py +++ b/challenge.py @@ -1,8 +1,12 @@ import time -def finish_date(): - # You have to code here!! +def finish_date(func): + def wrapper(*args, **kwargs): + func(*args, **kwargs) + final_time = time.strftime('%d/%m/%Y - %H:%M:%S', time.localtime()) + print(f'The function {func.__name__} finish at {final_time}') + return wrapper @finish_date