Spaces:
Sleeping
Sleeping
Update app.py
Browse files9 unmodified lines1011121314151611 unmodified lines2829303132339 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:"""A tool that converts a given time from a source timezone to a destination timezone using today's date.Args:11 unmodified linesfrom datetime import datetime, dateimport pytz# Use today's date with the provided timetoday = date.today()dt = datetime.strptime(time_str, fmt)9 unmodified lines1011121314151611 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) -> str:"""A tool that converts a given time from a source timezone to a destination timezone using today's date.Args:11 unmodified linesfrom datetime import datetime, dateimport pytzfmt: str = "%H:%M"# Use today's date with the provided timetoday = date.today()dt = datetime.strptime(time_str, fmt)
app.py+3-1