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

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

Hi there.

How about that case in attached image?


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

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 10 Pro 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

Windows 7 32

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

Thank you
My System SpecsSystem Spec

 Last Modified Date bug?

Thread Tools

Similar help and support threads
Thread Forum
Date modified property
My wife is using a laptop running windows 7 32 bit. She is having problems getting all her pictures in order as in date and or month. When she clicks on the arrange folder and clicks on either day or anything nothing happens. She keeps them in an order by the day. Last week it was working just...
General Discussion
backup files by modified date
Hello I need to perform incremental backup of my computer. But I wish to backup only files modified later than a certain date. How can that be done? thank you Beni Mor
Backup and Restore
file date-created VS date-modified where modified < created
All -- Please help with this question about file date-created VS date-modified in Windows 7. Suppose a file is created at time1. How come Windows7 reports "date created" as "time1" and "date modified" as "time2" where "time2" is a time earlier than time1? See the attached file,...
General Discussion
Date modified does not work
When I save a file from my email to my documents and show date modified, it never shows up at the bottom of the list. It did show this in XP (although not all the time). Why isn't it showing up at the bottom or top? Is it to do with the date that the file was created on the other persons...
General Discussion
Windows 7 zip file date modified
"date modified" field does not update when files are replaced in a zip folder while running Windows 7 64-bit. Data files are stored in zip files and utilized daily. At the days end the files are replaced with the most current revision. The updated file displays the correct "date modified",...
General Discussion
Date modified
Only those who have slipstreamed answer this please.. After integration of SP1 to a particular edition, did it the change the "date modified" column during the installation process??
Windows Updates & Activation

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 00:05.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App