January: 2678400 February: 264000
基本上,我想知道在过去的几个月里有多少秒,当前时间在当前的几个月(到目前为止多少秒).
任何代码段将不胜感激….
TimeSpan diff = (new DateTime(2011,02,10) - new DateTime(2011,01)); Console.WriteLine(diff.TotalSeconds);