会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
JAVA, .net,Python
java技术,.net技术,python量化交易
博客园
首页
新随笔
联系
订阅
管理
2007年9月30日
C#中使用TimeSpan计算两个时间的差值
摘要: 可以反加两个日期之间任何一个时间单位。private string DateDiff(DateTime DateTime1, DateTime DateTime2){string dateDiff = null; TimeSpan ts1 = new TimeSpan(DateTime1.Ticks);TimeSpan ts2 = new TimeSpan(DateTime2.Ticks);Tim...
阅读全文
posted @ 2007-09-30 10:00 rodney
阅读(18762)
评论(9)
推荐(0)
编辑