C# 获取时间戳
2021-03-10 07:28
阅读:620
标签:public mil timestamp ISE get time 获取时间戳 new returns /// C# 获取时间戳 标签:public mil timestamp ISE get time 获取时间戳 new returns 原文地址:https://www.cnblogs.com/wugh8726254/p/12701445.html
/// 获取时间戳
///
///
public static string GetTimeStamp()
{
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
return Convert.ToInt64(ts.TotalMilliseconds).ToString();
}
评论
亲,登录后才可以留言!