From e8e7ec06e1f24e999dc095cf917ce14712855cf0 Mon Sep 17 00:00:00 2001 From: Jorge Ruiz Date: Sun, 28 Jun 2020 22:41:41 -0600 Subject: [PATCH] Reto terminado --- .idea/.gitignore | 3 +++ .idea/challenge-python-08.iml | 11 +++++++++++ .idea/inspectionProfiles/Project_Default.xml | 18 ++++++++++++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ challenge.py | 11 +++++++++-- 8 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/challenge-python-08.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/challenge-python-08.iml b/.idea/challenge-python-08.iml new file mode 100644 index 0000000..8dc09e5 --- /dev/null +++ b/.idea/challenge-python-08.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..ed72d85 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a2e120d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..1c4cef2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/challenge.py b/challenge.py index c69287d..4737a85 100644 --- a/challenge.py +++ b/challenge.py @@ -1,8 +1,15 @@ import time -def finish_date(): - # You have to code here!! +def finish_date(func): + def wrapper(*args,**kwargs): + + func(*args,**kwargs) + + localtime = time.strftime('%d/%m/%Y - %H:%M:%S', time.localtime(time.time())) + print(f'Execution finished at : {localtime}') + + return wrapper @finish_date