diff --git a/challenge.py b/challenge.py index c69287d..90ffead 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) + print(f"The function {func.__name__} ran {time.strftime('%d/%m/%Y - %H:%M:%S', time.localtime())}") + return wrapper @finish_date