I\'m having trouble formatting a datetime.timedelta object.
datetime.timedelta
Here\'s what I\'m trying to do: I have a list of objects and one of the members of the cl
I used the humanfriendly python library to do this, it works very well.
humanfriendly
import humanfriendly from datetime import timedelta delta = timedelta(seconds = 321) humanfriendly.format_timespan(delta) '5 minutes and 21 seconds'
Available at https://pypi.org/project/humanfriendly/