a = time.time()
b = time.time()
c = b - a
I know c is in seconds. Is there a mod out there (maybe datetime or time) where it can convert the seconds into any form of duration?
for example: I want to be able to say
print convert_time(c, days=True)
print convert_time(c, hours=True)
and so forth....
I know I can just convert it manually but I was wondering if there were anything out there I can use instead of writing my own func.