You did not specify the time you are seeing, only the date, but I suspect it is 23:00:00. If you use Console.WriteLine(fi.LastAccessTime)
, you will likely see it print -36000000000
.
The last-access-timestamp of the file is being returned as 0 either because, as Sijin pointed out, the path is invalid, or because you have disabled the last-access update on an NTFS volume, or because you are using Vista or higher in which it is disabled by default.
In any case, because Windows uses January 1, 1601 as its epoch base, a date of 0 would return 00:00:00 1601-01-01
.
Now why are you seeing it as December 31, 1600 instead? Simple: timezones. Your profile has no biographical information, but your name and the Latin quote in your biography section make it not unreasonable to guess that you may be living somewhere around Spain, which is in the timezone UTC+01:00. In this case, when the timestamp is adjusted to local time, it would take the time (0) as the base, and subtract one hour to convert it to your timezone. Thus, you get the value -36000000000
which is 23:00:00 1600-12-31
.