Duration parser.
Project description
Duration Parser
A simple python implementation of a duration parser.
Installation
pip install duration-parser
Usage
from duration_parser import parse
seconds = parse('1d2h')
seconds = parse('2 years 3 weeks')
seconds = parse('1.234min')
seconds = parse('1d, 2 weeks')
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
duration-parser-1.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for duration_parser-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecbb05af545f688f3f6277ab7720e538a8ab834e22c443e2a912f6c7ab6ec5c |
|
MD5 | 18f9fd4660368bc21fe0c8fe9ed1e2e5 |
|
BLAKE2b-256 | e95dd463fb48daf32d39159b36177a4e68b86bad350b7feb6715f1967272c4af |