Skip to main content

Convert duration to an understandable human representation.

Project description

durtodateandtime

Python3 Module to convert from duration to date and time.

Installation

Install with pip

pip3 install -U durtodateandtime

Usage

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

0.1

Download files

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

Source Distribution

durtodateandtime-0.1.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file durtodateandtime-0.1.tar.gz.

File metadata

  • Download URL: durtodateandtime-0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for durtodateandtime-0.1.tar.gz
Algorithm Hash digest
SHA256 a840d87793d0cf5b262b4bcc0c4131a3a83947f7455eebea476dff479d125af1
MD5 ef70884ea07fc325bf86dd7ffffd6d72
BLAKE2b-256 830512df7e13d3f1980cdafe69ea7d7319f76aeb56d25660a2e3178bbbbd461e

See more details on using hashes here.

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