PYPI package with 2 functions to convert datetime.timedelta into string with nice format
Project description
Overview.
timedelta_nice_format is a PYPI package made with only one simple goal to convert time durations into nice human readable format
datetime.timedelta into nice formatted string
import datetime
from timedelta_nice_format import timedelta_nice_format
start = datetime.datetime.now()
# ...
# You code here
# ...
print(
"Duration:",
timedelta_nice_format(
datetime.datetime.now()-start
)
)
duration in seconds into nice formatted string
import time
from timedelta_nice_format import seconds_nice_format
start = time.time()
# ...
# You code here
# ...
print("Duration:", seconds_nice_format(time.time()-start))
Installation via pip:
pip install timedelta_nice_format
Links
Contacts
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file timedelta_nice_format-0.1.0.tar.gz
.
File metadata
- Download URL: timedelta_nice_format-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f231a646f3f39df520bb30d1fcd279925b5726079f56be63ebb63f9329c6f4c |
|
MD5 | 056e9ac40d6b259a1d4273d072617204 |
|
BLAKE2b-256 | d8b3cef3f67190030c5431511988df19fdfd340ca7c8a1587e10a9b6ad78c9f5 |
File details
Details for the file timedelta_nice_format-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: timedelta_nice_format-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1257b3cd5d20e3d560884b3a8b6e4a5179b6a50a5aa4a9a44d92f6313f5a0c38 |
|
MD5 | e8ed0da7c5a41aba70eb08141cd71476 |
|
BLAKE2b-256 | dd3c15251baa9760d461ad089b24c59b386f1c85a4a957af75f326f4cb4fbf3d |