标签:os java sp on new as javascript tt return
public string GetTime(DateTime dt)
{
Int64 retval = 0;
DateTime st = new DateTime(1970, 1, 1);
TimeSpan t = (dt.ToUniversalTime() - st);
retval = (Int64)(t.TotalMilliseconds + 0.5);
return retval.ToString();
}
javascript 的dateObj.getTime() 在为C#的获取方式
标签:os java sp on new as javascript tt return
原文地址:http://www.cnblogs.com/sunzhenyong/p/4056899.html