Notifications
Clear all

[Closed] getFileModDate vs GetLastWriteTime

Have you ever wandered, why there is a difference between “getFileModDate” and “GetLastWriteTime”

Let’s say we have a file

		   
  			s = @C:\a.max
  			print	(((dotnetclass "System.IO.File").GetLastWriteTime(s)).ToString())
  			print (getFileModDate s)

I get:

“7/10/2015 6:55:22 PM”
“7/10/2015 6:55:11 PM”

11 seconds difference.

2 Replies
 lo1

I get the same times for both methods.

i would trust GetLastWriteTime… at least most of c# (.net) applications use it