Spaces:
Sleeping
Sleeping
Update app.py
Browse files9 unmodified lines101112131314151611 unmodified lines28293031323334359 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !
@tooldef convert_time_only(time_str: str, from_tz_str: str, to_tz_str: str, fmt: str ="%H:%M") -> str:def convert_time_only(time_str: str, from_tz_str: str, to_tz_str: str) -> str: """A tool that converts a given time from a source timezone to a destination timezone using today's date.
Args:11 unmodified lines from datetime import datetime, date import pytz
fmt: str = "%H:%M"
# Use today's date with the provided time today = date.today() dt = datetime.strptime(time_str, fmt)app.py+3-1