Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Convert duration to an understandable human representation.

Project description


Python3 Module to convert from duration to date and time.


Install with pip

pip3 install -U durtodateandtime


In [1]: import durtodateandtime                                                                                       

In [2]: durtodateandtime.duration_to_date_and_time(86401)                                                             
Out[2]: '1 day, 00:00:01'

In [3]: durtodateandtime.duration_to_int_days(86401)                                                                  
Out[3]: 1

In [4]: durtodateandtime.duration_to_time(86401)                                                                      
Out[4]: '00:00:01'

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for durtodateandtime, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size durtodateandtime-0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page