Skip to main content

Displays a timedelta object for human consumption.

Project description

display-timedelta

Simple package for displaying timedeltas for human consumption

Basic usage example

>>> from datetime import timedelta
>>> from display_timedelta import display_timedelta
>>> display_timedelta(timedelta(hours=25, seconds=3))
'1 day, 1 hour, and 3 seconds'
>>> display_timedelta(timedelta(0))
'right now'

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 display-timedelta, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size display_timedelta-1.1.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

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