From c4137b8f9d186583e5ff4bb70502ce5a2ab20d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Mart=C3=ADnez?= Date: Fri, 10 Jul 2020 07:30:20 -0500 Subject: [PATCH] Solution challenge 08 --- challenge.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/challenge.py b/challenge.py index c69287d..8fcd427 100644 --- a/challenge.py +++ b/challenge.py @@ -1,7 +1,14 @@ import time -def finish_date(): +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'{func(*args, **kwargs)} \n Process end date and time: {final_time}') + return wrapper # You have to code here!!