Skip to main content

Friendly text to timedelta conversion

Project description

DeltaT — A simple time duration parser

Parse a time string e.g. '2h 13m' or '1.5d' into a timedelta object.

This is especially useful for command-line or configuration file parsing.

Based on Peter's answer at https://stackoverflow.com/a/51916936/2445204 and virhilo's answer at https://stackoverflow.com/a/4628148/851699

According to Peter, "any license is fine", Marcel concurs. For the sake of specificity, stating MIT license here, which should be compatible with most licenses.

Project details


Download files

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

Source Distribution

deltat-1.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

deltat-1.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page