Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,9 @@ def countdown_tool(event_date: str, duration: int) -> str:
|
|
| 26 |
Args:
|
| 27 |
event_date (str): The event's date and time in the format "YYYY-MM-DD HH:MM".
|
| 28 |
duration (int): A placeholder argument (not used in calculations).
|
|
|
|
|
|
|
|
|
|
| 29 |
"""
|
| 30 |
try:
|
| 31 |
event_datetime = datetime.datetime.strptime(event_date, "%Y-%m-%d %H:%M")
|
|
|
|
| 26 |
Args:
|
| 27 |
event_date (str): The event's date and time in the format "YYYY-MM-DD HH:MM".
|
| 28 |
duration (int): A placeholder argument (not used in calculations).
|
| 29 |
+
|
| 30 |
+
Returns:
|
| 31 |
+
str: A message displaying the time remaining until the event.
|
| 32 |
"""
|
| 33 |
try:
|
| 34 |
event_datetime = datetime.datetime.strptime(event_date, "%Y-%m-%d %H:%M")
|