日期:2014-05-18 浏览次数:20948 次
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { TimeSpan Time1 = DateTime.Parse("启动时间") - DateTime.Now; TimeSpan Time2 = DateTime.Parse("启动时间").AddSeconds(5) - DateTime.Parse("启动时间"); TimeSpan Time3=Time2-Time1; } } }