Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from Gradio_UI import GradioUI
|
|
| 9 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 10 |
"""A tool that fetches the current local time in a specified timezone.
|
| 11 |
Args:
|
| 12 |
-
timezone:takes the specified timezone"""
|
| 13 |
try:
|
| 14 |
tz = pytz.timezone(timezone)
|
| 15 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
| 9 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 10 |
"""A tool that fetches the current local time in a specified timezone.
|
| 11 |
Args:
|
| 12 |
+
timezone:takes the specified timezone text"""
|
| 13 |
try:
|
| 14 |
tz = pytz.timezone(timezone)
|
| 15 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|