Download tools/datetime_tool.py from nikhith123/AI-Personal-Assistant-Comparison-Lab: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab/resolve/main/tools/datetime_tool.py
- Command line
-
hf download hf://spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab/tools/datetime_tool.py
-
curl -L -o datetime_tool.py https://huggingface.co/spaces/nikhith123/AI-Personal-Assistant-Comparison-Lab/resolve/main/tools/datetime_tool.py
259 Bytes
| """Current local date/time tool.""" | |
| from __future__ import annotations | |
| from datetime import datetime | |
| def current_datetime_iso() -> str: | |
| """Return current local date and time as an ISO string.""" | |
| return datetime.now().isoformat(timespec="seconds") | |