Converts the value of the current xtd::time_span object to its equivalent string representation by using the specified format.
format | A single format specifier that indicates how to format the value of this xtd::time_span. |
xtd::format_exception | The format parameter is not recognized or is not supported. |
Format | |
---|---|
'c' | write duration with optional ticks d.hh.mm.ss.ticks |
'd' | write absolute value of days d |
'D' | write absolute value of days dd |
'f' | write duration d.h.mm.ss.ticks |
'F' | write duration d.hh.mm.ss.ticks |
'g' | write duration with optional ticks d.h.mm.ss.ticks |
'G' | write duration with optional ticks d.hh.mm.ss.ticks |
'h' | write absolute value of hours h |
'H' | write absolute value of hours hh |
'l' | write absolute value of milliseconds |
'L' | write absolute value of milliseconds fixed at 3 digits |
'm' | write absolute value of minutes m |
'M' | write absolute value of minutes mm |
'o' | write optional minus sign |
'o' | write minus or plus sign |
's' | write absolute value of seconds s |
'S' | write absolute value of seconds ss |
't' | write absolute value of ticks |
'T' | write absolute value of ticks fixed at 7 digits |