C#时间戳
电脑版发表于:2020/1/2 12:20
格式化成:年月日时分秒
string timestamp = DateTime.Now.ToString("yyyyMMddHHmmss");毫秒级时间戳
string timestamp = ((DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000).ToString();秒级时间戳
string timestamp = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000.ToString();