Download src/tools/time_tool.py from AIterAI/Finova: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/spaces/AIterAI/Finova/resolve/main/src/tools/time_tool.py
- Command line
-
hf download hf://spaces/AIterAI/Finova/src/tools/time_tool.py
-
curl -L -o time_tool.py https://huggingface.co/spaces/AIterAI/Finova/resolve/main/src/tools/time_tool.py
244 Bytes
| from datetime import datetime | |
| def get_current_time() -> dict: | |
| """Get current time | |
| Returns: | |
| dict: A dictionary containing current timestamp. | |
| """ | |
| return({"Current Time": datetime.now().strftime("%Y-%m-%d %H:%M:%S")}) |