I would like to measure elapsed time in days with the Python time module. My attempt is:
import time, datetime
def elapsed_time(start)
return datetime.datetime.fromtimestamp(time.time()-start).strftime('%Y-%m-%d-%H-%M-%S')
start = time.time()
print(elapsed_time(start))
# 1970-01-01-00-00-06
I would like the string to start from year 0, month 0, and day 0. How do I do that?