Create a TimeSpan representing 2.5 days : TimeSpan : Date Time C# Examples


C# Examples » Date Time » TimeSpan »

 

Create a TimeSpan representing 2.5 days









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  args)
        {
                TimeSpan  timespan1  =  new  TimeSpan(2,  12,  0,  0);
                Console.WriteLine(timespan1);
        }
}
    
   
  
   



Output

2.12:00:00


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Date Time
» TimeSpan