Pretty Timedelta. Convert your timedelta objects to pretty strings and vice versa.
Project description
ptimedelta
Convert time periods represented by strings to timedelta objects and vice versa.
Features
- Supports Python2.7, Python3+.
Warning
Project under a development.
Installation
$ pip install ptimedelta
Examples
>>> import ptimedelta as ptd
>>> ptd.to_timedelta("12m34s")
datetime.timedelta(seconds=754)
>>> ptd.to_seconds("3h23m4s", as_int=True)
12184
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
ptimedelta-0.1.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file ptimedelta-0.1.1.tar.gz
.
File metadata
- Download URL: ptimedelta-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fabdcea31028785bda5a5c6aa7d98bbae94489f7d770a003eaf6faa8907e2c5 |
|
MD5 | 07511869673a4904ebe029e57ccee8e9 |
|
BLAKE2b-256 | d22c9c14b61ba7636b7b6738c267f8e6746cd48cdae71f31b039e89276fae21a |
File details
Details for the file ptimedelta-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ptimedelta-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.1 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3edb9974c895647d1e1eb50864d571bd4aa5f327d5a6ad796230c30087512aae |
|
MD5 | 55d10e3c5e88bc7423db5a0cfa838609 |
|
BLAKE2b-256 | 05a1c9b13fef6e28cdbf671e86f1be64fbae1357a08d7117f23837101601c4d7 |