From 0f8967b9113d698cdeb2d05ca85d2d9a80461c24 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 9 Apr 2022 16:39:03 +0200 Subject: Commit --- actions/time.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 actions/time.py (limited to 'actions/time.py') diff --git a/actions/time.py b/actions/time.py new file mode 100644 index 0000000..a894270 --- /dev/null +++ b/actions/time.py @@ -0,0 +1,9 @@ +from datetime import datetime + + +# noinspection PyUnresolvedReferences +def _action_time(_input): + now = datetime.now() + time = now.strftime("%Hh%M") + say(f"Il est {time}") + return -- cgit