Converts seconds to human readable text or tuple
Project description
Seconds to Text
Converts seconds to human readable text or tuple
Args:
seconds:
Amount of seconds for it to process.
Can be float (at least 3 decimals) or int.
Can be negative but will be changed to positive.
listgen:
Generates a list of responses
used for string generation but can
be used externally if needed.
print(Secondstotext(-12069123).listgen())
showzeros: trims any part before the first not 0.
print(Secondstotext(-12069123).showzeros())
4 Months, 18 Days, 0 Hours, 32 Minutes, 3 Seconds
showall: shows all parts.
print(Secondstotext(12069123).showall())
0 Years, 4 Months, 18 Days, 0 Hours, 32 Minutes, 3 Seconds, 0 ms
rawtuple: returns a 7 part tuple.
print(Secondstotext(12069123).rawtuple())
(0, 4, 18, 0, 32, 3, 0)
default: skips any part of the response that is 0.
print(Secondstotext(12069123.135156484))
4 Months, 18 Days, 32 Minutes, 3 Seconds, 135ms
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
secondstotext-1.0.1b0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for secondstotext-1.0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8abe25c004033af77ff6b4e276ee0c60947f9d0b75a74351101009c73c2d1feb |
|
MD5 | 89a52d45458eae139fc4ef8cb77b0e31 |
|
BLAKE2b-256 | 3da891b5108aded6fc10bd102fe57959f5091655e10d43911be5cc4a0c549283 |