diff --git a/utils.py b/utils.py new file mode 100644 index 0000000000..5c13b2b63e --- /dev/null +++ b/utils.py @@ -0,0 +1,12 @@ +import datetime + +def current_time_formatted() -> str: + """ + Returns the current time as a formatted string in HH:MM:SS format. + + Returns: + str: The current time in HH:MM:SS format. + """ + current_time = datetime.datetime.now() + formatted_time = current_time.strftime("%H:%M:%S") + return formatted_time \ No newline at end of file