Friendly text to timedelta conversion
Project description
DeltaT — A simple time duration parser
Parse a time string e.g. '2h 13m' or '1.5d' into a timedelta object.
This is especially useful for command-line or configuration file parsing.
Based on Peter's answer at https://stackoverflow.com/a/51916936/2445204 and virhilo's answer at https://stackoverflow.com/a/4628148/851699
According to Peter, "any license is fine", Marcel concurs. For the sake of specificity, stating MIT license here, which should be compatible with most licenses.
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
deltat-1.1.2.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file deltat-1.1.2.tar.gz
.
File metadata
- Download URL: deltat-1.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80fbc98da656609a12f4592079fa5c4fbb8c7ed376494db312411d9f664f5c9c |
|
MD5 | 744137015e1814095874e42ff8851611 |
|
BLAKE2b-256 | 0b2b3f485b615574e61a5b6c4f940114caedcf18db9d4f194a74391cf004124b |
File details
Details for the file deltat-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: deltat-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf6759a6a174189dfdafed9fe4d2ecab129d2919beeba41e636400d64245ab9 |
|
MD5 | 40c5253803fe038d8260e2da32b80375 |
|
BLAKE2b-256 | c27325901fcfa0517c022c3963a80c9d54368d403ee59f9ffc8738ff02dbd162 |