Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Last Modified Date bug?

28 Apr 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  
My System SpecsSystem Spec
.

28 Apr 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
28 Apr 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
.


28 Apr 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
28 Apr 2011   #5

Windows 8 Core X64
 
 

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
28 Apr 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?




Thread Tools



Similar help and support threads for2: Last Modified Date bug?
Thread Forum
backup files by modified date Backup and Restore
file date-created VS date-modified where modified < created General Discussion
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

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 12:19 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 31 32 33