Subtract 15 minutes from the current TimeSpan and print the result : TimeSpan : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » TimeSpan »

 

Subtract 15 minutes from the current TimeSpan and print the result








    
 

using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        TimeSpan ts = new TimeSpan(4, 30, 0);
        Console.WriteLine(ts);

        Console.WriteLine(ts.Subtract(new TimeSpan(0, 15, 0)));
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» TimeSpan