Esempio n. 1
0
 /// <summary>
 /// 转换世界公认秒数为时间格式
 /// </summary>
 /// <param name="d">秒数</param>
 /// <returns></returns>
 public static DateTime ConvertIntDateTime(double d)
 {
     //DateTime minValue = DateTime.MinValue;
     return(DateTimeExtension.ToLocalTime(d, false));            //TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)).AddSeconds(d);
 }