C# TimeSpan Milliseconds
Description
TimeSpan Milliseconds
gets the milliseconds component
of the time interval represented by the current TimeSpan structure.
Syntax
TimeSpan.Milliseconds
has the following syntax.
public int Milliseconds { get; }
Example
The following example creates several TimeSpan objects and displays the Milliseconds property of each.
using System;/*w w w.j a v a2 s. c o m*/
class TimeSpanPropertiesDemo
{
static void Main( )
{
TimeSpan ts = new TimeSpan( 98712345678 );
Console.WriteLine(ts.Milliseconds);
}
}
The code above generates the following result.