c#时间戳

long time=(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
Console.WriteLine("timestamp:"+time);

 

验证过,正确可用。

 

参考:

各种语言的时间戳获取方法:https://tool.lu/timestamp/

 

posted on 2020-01-08 16:26  踏歌&而行  阅读(425)  评论(0编辑  收藏  举报