Spaces:
Runtime error
Runtime error
Download src/exploration/datetime_test.py from Endre/SemanticSearch-HU: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/spaces/Endre/SemanticSearch-HU/resolve/main/src/exploration/datetime_test.py
- Command line
-
hf download hf://spaces/Endre/SemanticSearch-HU/src/exploration/datetime_test.py
-
curl -L -o datetime_test.py https://huggingface.co/spaces/Endre/SemanticSearch-HU/resolve/main/src/exploration/datetime_test.py
275 Bytes
| from datetime import datetime | |
| dt = datetime.now() | |
| print(dt) | |
| print(dt.strftime('%a %d-%m-%Y')) | |
| print(dt.strftime('%a %d/%m/%Y')) | |
| print(dt.strftime('%a %d/%m/%y')) | |
| print(dt.strftime('%A %d-%m-%Y, %H:%M:%S')) | |
| print(dt.strftime('%X %x')) | |
| print(dt.strftime('%Y-%m-%d_%H:%M:%S')) | |