Get readable time in seconds.
Project description
# durationstring A small module to assist in getting readable time in seconds that can be easily passed to time.sleep(seconds).
Converters
s - seconds
m - minutes
h - hours
d - days
Failing to provide a converter will default to seconds.
Examples
import duration_string
import time
time.sleep(duration_string.get("2m"))
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
durationstring-1.0.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for durationstring-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee793750007fba40da39bbc1144c17c6992e8c863bca26f065d7c254a77f5d1 |
|
MD5 | cec0b82abf9b70083476038954c89943 |
|
BLAKE2b-256 | 87a4f0aa5e7bc78f6c57b13f6abd4b32a263193095a88125b39ad9051f42a1bb |