日期:2014-05-17 浏览次数:20842 次
简单的运用Datetime类做时间操作,哈!!
DateTime dt1 = DateTime.Now;
DateTime dt2 = DateTime.Now;
TimeSpan ts = dt2 - dt1;
double miao = ts.TotalSeconds;