Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Pure Python module that handles stopwatch time rather than wallclock time

Project Description

The TimeDuration module provides a Pure Python interface to the creation, manipulation and comparison of time duration string. E.g. if 3:21:45.3 and 3:22:30.1 represent stopwatch times, I don’t want to represent or store them as datetime objects but I do want to be able to compare them and do simple calculations on such string such as find the average of a tuple of TimeDuration objects.

I’d also like to be able to say something like “3 weeks, 5 days 12 hours and 32 minutes” and be able to convert that to minutes, seconds or hours and be able to convert strings that look like durations of time to a normalized format.

Examples are included.

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
TimeDuration-0.2a.tar.gz (6.0 kB) Copy SHA256 Checksum SHA256 Source May 2, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting