Skip to content

doblabs/human-friendly_pedantic-timedelta

Repository files navigation

Human-Friendly Pedantic timedelta

Build Status

Coverage Status

Documentation Status

GitHub Release Status

PyPI Release Status

PyPI Supported Python Versions

License Status

A Python timedelta wrapper which provides pedantic string formatting.

Install with pip:

pip3 install human-friendly_pedantic-timedelta

For more options, read the installation guide.

Simple example:

$ python3
>>> from pedantic_timedelta import PedanticTimedelta
>>> PedanticTimedelta(days=0.33).time_format_scaled()
# OUTPUT
# ('7.92 hours', 3600.0, 'hour')

"Penrose Hourglass"