I\'m working on an app that may be seen in many countries in the world. There are not many countries that show hours, minutes and seconds with something other than : as a s
I'm looking for a simple, single line to output a timeSpan in a culture-Aware manner.
Then I think you're best off using the DateTime
class to do the formatting for you:
string display = new DateTime(timespan.Ticks).ToLongTimeString();
Assuming that timespan
holds a positive duration between 0 and 24 hours long.