Template:Duration/doc

Formats a duration given in seconds. Seconds will be rounded to 3 digits.

Usage

 * If the second parameter "hhmm" is given, the format will be like hh:mm, hh been the total number of hours including days.
 * If the second parameter "ddhhmm" is given, the format will be like dd hh:mm if the duration is longer than a day, otherwise the format will be like hh:mm.
 * If any other second parameter is given (any non-whitespace character), the format will be like dd:hh:mm:ss.
 * If the second parameter is empty, the format will be like 1d 4h 23m 2s.

Examples

 * creates
 * creates
 * creates
 * creates
 * creates
 * creates
 * creates
 * creates
 * creates
 * creates