我试过如何将 DateTime 转换为自 1970 年以来的秒数?和
DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
DateTime date = DateTime.Parse(@"28/05/12 01:30");
TimeSpan diff = date.ToUniversalTime() - origin;
Console.WriteLine( (Math.Floor(diff.TotalSeconds)).ToString());
输出 = 1338161400
与http://www.mbari.org/staff/rich/utccalc.htm 1338168600相比,这是错误的
为什么 ?