A single function to get a nice date-time format
Project description
getdate
This package includes a simple function to create my preferred date-time format for log files.
Example:
from getdate import getdate
print(getdate())
output:
'2025-02-26_08.34.13.636609'
How I would actually use it:
from getdate import getdate
filepath = f'save_directory/log_{getdate()}'
# some code that saves my logfile
print(f"File saved to {filepath}")
output:
File saved to save_directory/log_2025-02-26_08.34.13.636609
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neattime-0.0.1.tar.gz
(1.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neattime-0.0.1.tar.gz.
File metadata
- Download URL: neattime-0.0.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5814ec4fa85618e8674e8694562a14250959559b08373c53fc9b65b740bc2e3c
|
|
| MD5 |
2437917d216d2bb1d599afd38909f08c
|
|
| BLAKE2b-256 |
fe864c766947a813486448eec9137ac8494b6b3e6111321c1101b062438c4a92
|
File details
Details for the file neattime-0.0.1-py3-none-any.whl.
File metadata
- Download URL: neattime-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baaee0763551883de7a949159a6e1121f67f9d49828866cd5e50c4d66468bc8e
|
|
| MD5 |
428777b77bdaa786eb97610f4fdae17b
|
|
| BLAKE2b-256 |
adbe48de5cbe09650df9185d057862a4c93765ce217b5b019ec052b6962064ab
|