Working with time DURATION, not time of day

后端 未结 9 936
后悔当初
后悔当初 2020-12-13 17:07

I\'m doing some benchmarking, and I want to use Excel to produce graphs of the results. I\'ve got a simple but annoying problem which is baking my noodle.

The proble

9条回答
  •  眼角桃花
    2020-12-13 17:27

    Use format d "days" h:mm:ss or [h]:mm:ss, depending on your needs.

    Say you have a duration of 30h 12m 54s:

    • h:mm:ss -> 6:12:54 (not correct for a duration)
    • [h]:mm:ss -> 30:12:54
    • d "days" h:mm:ss -> 1 days 6:12:54

    Variations are possible: I like something like d"d" h"h" mm"m" ss"s" which formats as 1d 6h 12m 54s.

提交回复
热议问题