Get the seconds component of the time interval represented by the current TimeSpan in CSharp
Description
The following code shows how to get the seconds component of the time interval represented by the current TimeSpan.
Example
using System;/* w w w . j a v a 2 s .c om*/
class TimeSpanPropertiesDemo
{
static void Main( )
{
TimeSpan ts = new TimeSpan( 98712345678 );
Console.WriteLine(ts.Seconds);
}
}
The code above generates the following result.