/// <summary> /// 将UTC时间转化DateTime时间 /// </summary> /// <returns></returns> private DateTime ChangeUTCToDateTime(double utc) { DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); startTime = startTime.AddSeconds(utc); startTime = startTime.AddHours(8); return startTime; }
UTC时间戳转为时间
猜你喜欢
转载自www.cnblogs.com/144823836yj/p/8921894.html
今日推荐
周排行