标签:转化 时间戳 start oda localtime new return col current
/// <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; }
标签:转化 时间戳 start oda localtime new return col current
原文地址:https://www.cnblogs.com/144823836yj/p/8921894.html