码迷,mamicode.com
首页 > Windows程序 > 详细

c# long转 datetime

时间:2016-04-21 10:13:02      阅读:319      评论:0      收藏:0      [点我收藏+]

标签:

long time = 1460682179000;
DateTime start = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
DateTime  date = start.AddMilliseconds(time).ToLocalTime();

 

c# long转 datetime

标签:

原文地址:http://www.cnblogs.com/andies/p/5415662.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!