Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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