format
Formats this Duration as d:HH:MM:SS (or d:HH:MM:SS.mmm when includeMillis is true).
Negative durations are prefixed with -, except one whose output would be all zeros: one that truncates to zero milliseconds, or, when includeMillis is false, to zero seconds, has no sign. An infinite duration formats as Long.MAX_VALUE milliseconds, 106751991167:07:12:55, with a - when negative; that is longer than any finite duration, whose largest is Long.MAX_VALUE / 2 - 1 milliseconds.
Extension function on Duration.
Return
the formatted duration string
Parameters
includeMillis
whether to include milliseconds in the output (default false)