C# 时间戳

        #region 时间戳

        private string GetTime()

        {

            DateTime timeStamp = new DateTime(1970, 1, 1);

            long a = (DateTime.UtcNow.Ticks - timeStamp.Ticks) / 10000;

            return a.ToString();

        }

        #endregion

 

你可能感兴趣的:(时间戳)