1 DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); 2 DateTime dtNow = DateTime.Parse(DateTime.Now.ToString()); 3 TimeSpan toNow = dtNow.Subtract(dtStart); 4 string timeStamp = toNow.Ticks.ToString(); 5 timeStamp = timeStamp.Substring(0, timeStamp.Length - 7);
时间: 2024-10-23 11:09:45