Spaces:
Running
Running
Download src/utils/time.py from Jakob08/moneychatbot: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/src/utils/time.py
- Command line
-
hf download hf://spaces/Jakob08/moneychatbot/src/utils/time.py
-
curl -L -o time.py https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/src/utils/time.py
256 Bytes
| # | |
| # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| from datetime import datetime, timezone | |
| def get_current_time() -> str: | |
| return datetime.now(timezone.utc).strftime( | |
| "%H:%M %Z. %A, %d %B %Y." | |
| ) |