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.

Source Distribution

display_timedelta-1.0.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file display_timedelta-1.0.tar.gz.

File metadata

  • Download URL: display_timedelta-1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

File hashes

Hashes for display_timedelta-1.0.tar.gz
Algorithm Hash digest
SHA256 716adb7d9b984f47ee80c862cb820771bb97db309b119cc6f4682efbc4004520
MD5 29e927858f3b169d0e84a3dc93199c86
BLAKE2b-256 bcd953106d0632ce763635228decc6203b7efbbd9dbe8247e547cf2fe6d08a8c

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