C# 获取Unix时间戳的方法

new DateTimeOffset(DateTime.UtcNow)
.ToUnixTimeSeconds()

自动计算运行宿主所在的时区

2021-06-04 C#

发布评论