Last Modified Date bug?


  1. jzz
    Posts : 3
    Windows 7 32
       #1

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


    Hi there.

    How about that case in attached image?

    Thanks.
    Attached Thumbnails Attached Thumbnails Last Modified Date bug?-winbug.png  
    Last edited by jzz; 28 Apr 2011 at 20:53. Reason: Better tags
      My Computer


  2. Posts : 1,814
    XP / Win7 x64 Pro
       #2

    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 Computer


  3. jzz
    Posts : 3
    Windows 7 32
    Thread Starter
       #3

    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 Computer


  4. Posts : 1,814
    XP / Win7 x64 Pro
       #4

    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 Computer


  5. Posts : 6,285
    Windows 10 Pro X64
       #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 Computer


  6. jzz
    Posts : 3
    Windows 7 32
    Thread Starter
       #6

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

    http://strcpy.com/300

    Thank you
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 02:12.
Find Us