c# long转 datetime
2016-04-21 09:25
281 查看
long time = 1460682179000; DateTime start = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); DateTime date = start.AddMilliseconds(time).ToLocalTime();
相关文章推荐
- 关于C# winform 程序退出说明
- C#反射
- 【C#】剪切出图片的一部分
- 【C#】取得并改变图像解析度
- c# MyXls 导出excel文件
- 细说C#多线程那些事-线程基础
- 拿什么拯救你,我的代码--c#编码规范实战篇
- C# 矩形面积 0002
- C# helloworld 0001
- C# 去除字符串前0,保留有效数字的解决方案
- [C#][Log4Net] 配置
- C#把白色背景变成透明
- c#使用WPD读取便携式设备信息一(枚举设备、连接设备及读取设备信息)
- c#winfrom PropertyGrid 运行时变更属性项
- C#线程同步的几种方法
- C#中的委托和事件
- (C#)WinForm窗体间传值
- 函数式编程——C#理解
- C#详解值类型和引用类型区别
- C#的Infinity和NaN