c# 获取时间戳

var unixTimestamp = (long)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;

 

posted @ 2023-08-21 17:19  simadi  阅读(44)  评论(0编辑  收藏  举报