File.SetLastWriteTime Not working as planned
Posted on 2014-01-28
I am trying to set the File.SetLastWriteTime with that of a file that it was copied from.
It kinda works. Problem is that when getting the new GetLastWriteTime it is one or two seconds greater than the date/time provided.
For instance if the Source file is 01/28/2014 1:18 PM, the Destination file, that is being altered, shows a value of 01/28/2014 1:20 PM. It's as if the SetLastWriteTime is working but taking a couple seconds, so that a new value is set.
example: (TDest$ and TSource$ are files, including paths)