Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Basic Python module to parse time expressions.

Project description

Python time expressions parser

https://img.shields.io/pypi/v/pytimeparser.svg https://img.shields.io/travis/ouahibelhanchi/pytimeparser.svg Documentation Status

Basic Python module to parse time expressions.

Usage

To use Python time expressions parser in a project:

import pytimeparser

output_timedelta = pytimeparser.parse('3 days 5:12:43.123')

print(output_timedelta.total_seconds())

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.0 (2018-06-11)

  • Raise ValueError in case no time expression recognized.

0.1.0 (2018-04-02)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytimeparser, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pytimeparser-0.2.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pytimeparser-0.2.0.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page