I have a function that returns the difference between 2 DateTime's in seconds. However, in certain cases its not working correctly and I'm not sure why.
I.E.:
Debug.WriteLine(DateTime.Parse("7/22/2010 9:52:39 AM").Subtract(DateTime.Parse("7/22/2010 8:58:38 AM")).Seconds, "WTF");
The above code returns 1
... obviously there's more than a 1 second difference between the dates above.