Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Last Modified Date bug?

 
04-28-2011   #1
jzz


Windows 7 32
 
 

Last Modified Date bug? (windows round trunc date delphi dos)

Hi there.

How about that case in attached image?

Thanks.

Attached Thumbnails
Last Modified Date bug?-winbug.png  

Last edited by jzz; 04-28-2011 at 08:53 PM.. Reason: Better tags
My System SpecsSystem Spec
04-28-2011   #2


XP / Win7 x64 Pro
 
 


It appears explorer rounds up while the command shell 'dir' command truncates. I would say it's more of a discrepancy than a bug, but you're right. I'd rather both say the same thing.
My System SpecsSystem Spec
04-28-2011   #3
jzz


Windows 7 32
 
 


That's a problem for me.
I need to compare a log file made by "DIR *.SQL > LOG.TXT" and downloaded files in FTP to make sure the files are updated.
I'm using delphi to make a program for this comparisons and all functions to get modifyed datetime are returning the falied time :/
My System SpecsSystem Spec
.


04-28-2011   #4


XP / Win7 x64 Pro
 
 


Dir /T (A, C, or W) will sort the files based on Accessed, Created, or Written times, if that helps. So, the newest files will always occur before the older files.
My System SpecsSystem Spec
04-28-2011   #5


 
 


Just use minutes and seconds. From what you showed, that's what the dir command does, no rounding I can see.

That's also what I see on my WIn 7 system.
My System SpecsSystem Spec
04-28-2011   #6
jzz


Windows 7 32
 
 


I found this Delphi function that returns the real unrounded date and time.

http://strcpy.com/300

Thank you
My System SpecsSystem Spec
Reply

 Last Modified Date bug? problems?



Thread Tools



Similar Threads for: Last Modified Date bug?
Thread Forum
Solved Can one search for date and time modified? General Discussion
Date modified does not work General Discussion
Date modified Windows Updates & Activation
Date modified field General Discussion
Date modified issue Music, Pictures & Video


All times are GMT -5. The time now is 11:44 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30