Commit 827dd1b0 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent b2028d18
...@@ -36,13 +36,17 @@ class Tools: ...@@ -36,13 +36,17 @@ class Tools:
def get_current_time(self) -> str: def get_current_time(self) -> str:
""" """
Get the current time. Get the current time in a more human-readable format.
:return: The current time. :return: The current time.
""" """
now = datetime.now() now = datetime.now()
current_time = now.strftime("%H:%M:%S") current_time = now.strftime("%I:%M:%S %p") # Using 12-hour format with AM/PM
return f"Current Time = {current_time}" current_date = now.strftime(
"%A, %B %d, %Y"
) # Full weekday, month name, day, and year
return f"Current Date and Time = {current_date}, {current_time}"
def calculator(self, equation: str) -> str: def calculator(self, equation: str) -> str:
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment