From 573b89643136bec5185c2f97b82abceefe4e5b57 Mon Sep 17 00:00:00 2001 From: Adrian Charkiewicz Date: Wed, 8 Jun 2022 15:21:55 +0200 Subject: [PATCH] got time --- src/components/chane.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/chane.py b/src/components/chane.py index ae90782..9f057f8 100644 --- a/src/components/chane.py +++ b/src/components/chane.py @@ -36,4 +36,24 @@ def getTitle(user_title): return titles[max_index] #def getSeats: - #pass \ No newline at end of file + #pass + +def getTime(user_time): + numbers = re.findall('[0-9]+', user_time) + numbers = [number.zfill(2) for number in numbers] + return ":".join(numbers[:2]) + + + + + + + + + + + + + + +