// 时间戳转为格式
public DateTime StampToDateTime(string timeStamp)
{
DateTime dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
long lTime = long.Parse(timeStamp + "0000000");
TimeSpan toNow = new TimeSpan(lTime);
return dateTimeStart.Add(toNow);
}
原文地址:https://www.cnblogs.com/yanshaoxiong/p/11320222.html
时间: 2024-10-10 21:56:38