C# 获取时间戳

new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();
原文地址:https://www.cnblogs.com/Alicia-meng/p/14812479.html