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
Release history Release notifications | RSS feed
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.1.tar.gz
(1.6 kB
view hashes)