A package to convert user input into datetime.timedelta objects
Project description
time_str
A package to convert user input into datetime.timedelta objects.
PyPI: https://pypi.org/project/time-str/
Docs: https://time-str.readthedocs.io/en/latest/
Installation ########
You can install released versions of time_str from the Python Package Index via pip or a similar tool:
Stable Release: pip install time_str
Working Version: pip install git+https://github.com/BobDotCom/time_str.git
Usage ######## .. code-block:: python
>>> import time_str
>>> time_str.convert('11 months 9days 1m 3 sec')
datetime.timedelta(days=345, seconds=63)
>>> time_str.convert('2 months 3w 1 d 5hour 3 min')
datetime.timedelta(days=83, seconds=18180)
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
time_str-0.0.3.dev1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for time_str-0.0.3.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fef5594ab586732676e71d1640a7b5641e314d0ab1a8ae5e43b8b519376ce966 |
|
MD5 | 418355b60163fc896b866a9cfabccb86 |
|
BLAKE2b-256 | 6634a39a8332b1ef2c2eb40348325ae86f6a45ca513bd9708832f7ec503b825a |