time utils
Browse files- utils/time_utils.py +13 -0
utils/time_utils.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
def get_current_time():
|
6 |
+
"""
|
7 |
+
Returns the current time in the format: HH:MM:SS
|
8 |
+
"""
|
9 |
+
# NOTE: I can perhaps modify what "now" is to instead be at a past F1
|
10 |
+
# race when testing real-time tools
|
11 |
+
return datetime.datetime.now().strftime("%H:%M:%S")
|
12 |
+
|
13 |
+
|