Displays a timedelta object for human consumption.
Project description
display-timedelta
Simple package for displaying timedeltas for human consumption
Basic usage example
>>> from datetime import timedelta
>>> from display_timedelta import display_timedelta
>>> display_timedelta(timedelta(hours=25, seconds=3))
'1 day, 1 hour, and 3 seconds'
>>> display_timedelta(timedelta(0))
'right now'
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
display_timedelta-1.1.tar.gz
(1.6 kB
view details)
File details
Details for the file display_timedelta-1.1.tar.gz
.
File metadata
- Download URL: display_timedelta-1.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7adffae2e4d01f446e47f27a401cfcefd164b6ddbf5e6e10ad15ed8a81b91bd |
|
MD5 | a6f41a6ec3c1d4713dc43fb3ec0bb76a |
|
BLAKE2b-256 | bdc768598e2af1fff5f6dba1b9111cf474964e6a9686fbe065adc2e5a6a63022 |