from datetime import timedelta
a = timedelta(seconds=6928727.56235)
print('%d days %02d:%02d:%02d' % (a.days, a.seconds / 3600, a.seconds / 60 %
    60, a.seconds % 60))
Python: Seconds since epoch to relative date