Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utgwkk/py-timeparser
Parses time string (e.g. 1h5min6s) and returns second
https://github.com/utgwkk/py-timeparser
Last synced: about 1 month ago
JSON representation
Parses time string (e.g. 1h5min6s) and returns second
- Host: GitHub
- URL: https://github.com/utgwkk/py-timeparser
- Owner: utgwkk
- License: mit
- Created: 2016-08-18T08:33:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-05T14:32:25.000Z (over 4 years ago)
- Last Synced: 2024-11-10T07:24:43.733Z (about 2 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-timeparser ![test](https://github.com/utgwkk/py-timeparser/workflows/test/badge.svg) [![PyPI version](https://badge.fury.io/py/py-timeparser.svg)](https://badge.fury.io/py/py-timeparser)
Parses time string (e.g. 1h5min6s) and returns second## Install
```sh
$ pip install py-timeparser
```## How to use
```python
>>> import timeparser>>> timeparser.parse('10s')
10>>> timeparser.parse('1h5min')
3900
```## License
MIT