def seconds(value):

    return value.days * 8.64e4 + value.seconds + value.microseconds / 1e6
Like repr(dict), but in sorted order.
dataset/ETHPy150Open borg-project/borg/borg/util.py/seconds--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/sortdict