以下获取时间戳的结果一致
new Date().getTime();
Date.now();
private static long GetNowTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1); return Convert.ToInt64(ts.TotalMilliseconds); }