C# 获取一个13位的时间戳
2016-07-04 16:30
211 查看
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
Response.Write(Convert.ToInt64(ts.TotalMilliseconds).ToString());
Response.Write(Convert.ToInt64(ts.TotalMilliseconds).ToString());
相关文章推荐
- 【C#编写Windows服务】
- [转]C#多线程学习 之 线程池[ThreadPool]
- 值类型 引用类型 ref out
- C# IEnumerator, IEnumerable, and Yield
- C#==>匿名方法
- C#用DataTable实现Group by数据统计
- 【音乐拼接】mp3格式
- 【音乐拼接】WAV格式
- C#调用摄像头拍摄,截图,视频
- C# 命名异常
- 【TypeScript】如何在TypeScript中使用async/await,让你的代码更像C#。
- csharp: Procedure with DAO and DAL
- csharp: Procedure with DAO and DAL
- c# socket
- c# 读写文件
- C# 压缩 解压 复制文件夹,文件的操作
- 21 调试我们的C#程序
- 使用跟踪和调试进行条件编译
- C# QRCode 二维码
- C#入门随手笔记