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