From 75438637d300f659c247877d1563f60dd90d7de7 Mon Sep 17 00:00:00 2001 From: EdwardTL Date: Thu, 25 Jun 2020 20:57:53 -0500 Subject: [PATCH] Reto Cumplido --- challenge.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/challenge.py b/challenge.py index c69287d..ad48eef 100644 --- a/challenge.py +++ b/challenge.py @@ -1,9 +1,14 @@ import time -def finish_date(): - # You have to code here!! - +def finish_date(func): + def wrapper(*args, **kwargs): + func(*args, **kwargs) + + final_time = time.time() + final_time = time.strftime('%d/%m/%Y - %H:%M:%S') + print(f'Func: {func.__name__} finished at: {final_time}') + return wrapper @finish_date def palindrome(string):