//2018/5/14 16:03:05转换:1526284985 public static double ConvertToDouble(DateTime date)
{
var baseTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(, , ));
var ts = date - baseTime;
double intervel = ts.TotalSeconds;
return intervel;
} public static System.DateTime ConvertIntDateTime(double d)
{
System.DateTime time = System.DateTime.MinValue;
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(, , ));
time = startTime.AddSeconds(d);
return time;
}