Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| // <Snippet2> | |
| using System; | |
| public class Example | |
| { | |
| public static void Main() | |
| { | |
| TimeSpan duration = new TimeSpan(1, 12, 23, 62); | |
| string output = "Time of Travel: " + duration.ToString("c"); | |
| Console.WriteLine(output); | |
| Console.WriteLine("Time of Travel: {0:c}", duration); | |
| } | |
| } | |
| // The example displays the following output: | |
| // Time of Travel: 1.12:24:02 | |
| // Time of Travel: 1.12:24:02 | |
| // </Snippet2> |