Duration parser.
Project description
Duration Parser
A simple python implementation of a 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.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for duration_parser-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3196a5f90c2923e7f30345227f04c9c348a3774c0c437f5f6e81808a28bae900 |
|
MD5 | e1c4692e17a6db6f19dce5b0a934dfa8 |
|
BLAKE2b-256 | 81fbd9f66fd4e1cea344b07a0cc95f95080830ba13739e6a123e695f04dd883b |