TimeSpan Duration
In this chapter you will learn:
TimeSpan.Duration()
using System;/*j ava2 s .c o m*/
class MainClas
{
public static void Main()
{
TimeSpan myTimeSpan13 = new TimeSpan(1, 10, 13);
TimeSpan myTimeSpan14 = new TimeSpan(2, 6, 10);
TimeSpan myTimeSpan15 = myTimeSpan13.Subtract(myTimeSpan14);
Console.WriteLine("myTimeSpan15.Duration() = " + myTimeSpan15.Duration());
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » Date, Time, TimeZone