using System;
class MainClass
{
static void CreateTimeSpan( int days, int hours, int minutes, int seconds, int millisec )
{
TimeSpan elapsedTime = new TimeSpan(days, hours, minutes, seconds, millisec );
string ctor = String.Format( "TimeSpan( {0}, {1}, {2}, {3}, {4} )", days, hours, minutes, seconds, millisec);
Console.WriteLine( "{0,-48}{1,24}", ctor, elapsedTime.ToString( ) );
}
static void Main( )
{
CreateTimeSpan( 10, 20, 30, 40, 50 );
}
}