/// <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; }
原文地址:https://www.cnblogs.com/144823836yj/p/8921894.html
时间: 2024-11-05 15:48:20