I'm sorry...what are you expecting it to output?
Because you are telling it to output the total seconds that have elapsed between the last written time and the January 1, 1970..
Why are you messing with TimeSpans at all?
Mark was close...but date1 is just a number you picked because, I assume, you thought it was the epoch.
It's actually not in .Net. Try this:
DateTime date1 = new DateTime(0);
and see what date it gives you...it will give you: Jan 1, 0001, Midnight.
If you want that type of time stamp, just try this:
Console.WriteLine(NextFile.LastWriteTime.ToString("dd.MM.yyyy HH:mm:ss"));
FYI, that totalseconds = 14,906 days and 13 hours and 23 minutes and 28 seconds. The Julian Day Number for Jan 1, 1970 is 2440588 and the Day Number for Oct. 24, 2010 is 2455494 which is a difference of 14,906 days.
And if you're just trying to compare two dates you can just do
if (date1 != date2)