FormatDuration
Returns the human readable format of the given number of seconds.
- Use
TimeSpan.FromSeconds()to convert the number ofsecondsto aTimeSpanobject. - Use
TimeSpan.ToString()with an appropriate format specifier to return a human readable string of the value.