编程语言
首页 > 编程语言> > C#获取时间戳

C#获取时间戳

作者:互联网

        static readonly DateTime utcStart = new DateTime(1970, 1, 1);
        public static ulong GetUTCStartMilliseconds() {
            TimeSpan ts = DateTime.UtcNow - utcStart;
            return (ulong)ts.TotalMilliseconds;
        }

标签:return,ulong,C#,utcStart,ts,DateTime,获取,时间,static
来源: https://blog.csdn.net/m0_38066968/article/details/120082005