会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
依依似君子
自强不息,厚德载物
博客园
首页
联系
订阅
管理
2006年4月12日
UNIX时间戳与.net日期类的转换
摘要: 1 将系统时间转换成UNIX时间戳 DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970,1,1));DateTime dtNow = DateTime.Parse(DateTime.Now.ToString());TimeSpan toNow = dtNow.Subtract(dtStart);stri...
阅读全文
posted @ 2006-04-12 14:19 非我
阅读(623)
评论(1)
推荐(0)
编辑