using System;public class Example{ public static void Main() { TimeSpan ts = new TimeSpan(3, 42, 0); Console.WriteLine("{0:%h} hours {0:%m} minutes", ts); }}//3 hours 42 minutes