You could do something like:
TimeSpan time = ...;
string timeForDisplay = (int)time.TotalHours + time.ToString(@"\:mm\:ss");
More Related Contents:
- Find if current time falls in a time range
- Showing Difference between two datetime values in hours
- calculating the difference in months between two dates
- Format TimeSpan greater than 24 hour
- How do I convert a TimeSpan to a formatted string? [duplicate]
- Measuring code execution time
- Environment.TickCount vs DateTime.Now
- What is the easiest way to subtract time in C#?
- Format A TimeSpan With Years
- Why does TimeSpan.ParseExact not work
- C# 4.0: Can I use a TimeSpan as an optional parameter with a default value?
- Check if datetime instance falls in between other two datetime objects
- Sum of TimeSpans in C#
- How to parse string with hours greater than 24 to TimeSpan?
- Getting time span between two times in C#?
- How to produce “human readable” strings to represent a TimeSpan
- How to Convert string “07:35” (HH:MM) to TimeSpan
- How many clients can connect to this server? [closed]
- How can i get ALL File Extentions in C#? [closed]
- Is floating-point math consistent in C#? Can it be?
- How to write a simple Html.DropDownListFor()?
- c# Image resizing to different size while preserving aspect ratio
- Image sequence to video stream?
- How do I get information about recently connected USB device?
- How to read to end process output asynchronously in C#?
- Why is AddRange faster than using a foreach loop?
- Opening a URL in a new tab
- method without access modifier
- Using XmlSerializer to create an element with attributes and a value but no sub-element
- How to name C# source files for generic classes