Avatar of Stephen Kairys
Stephen Kairys
Flag for United States of America asked on

Discrepancy in timestamp of two files

Win10:

Hello,
I discovered a timestamp discrepancy when I look at a directory in Windows Explorer vs. Command Prompt. (Filenames scrubbed.)

Here's how it looks in windows explorer. The first file pair is in the PROJECTS folder, the second pair in a subfolder, to which I copied the files via the GUI  (not command prompt):
In windows explorer
And here's how they look in the command prompt:
Directory of P:\Projects

12/17/2018  04:53 PM            22,465 xxxxxxxxxxxxxxxxxxxxxxxxxDomains_AfterUploading.PNG
02/22/2019  04:54 PM            23,726 xxxxxxxxxxxxxxxxxxxxxxxxxKeywords_AfterUploading.PNG
           
Directory of P:\Projects\TimestampDiscrepancy

12/17/2018  04:53 PM            22,465 xxxxxxxxxxxxxxxxxxxxxxxxxDomains_AfterUploading.PNG
02/22/2019  04:54 PM            23,726 xxxxxxxxxxxxxxxxxxxxxxxxxKeywords_AfterUploading.PNG

In the main PROJECTS folder, you'll note that the timestamps for the first two files differ between the WIndows Explorer view and the Command prompt view. (4:51p and 4:53p vs 4:53p and 4:54p)

However, after copying the files (the second two files you see in each example), the timestamps match. The COPY command apparently reset/refreshed the timestamp.

Does Win10 store more than one timestamp for files? (They are all PNG files.)

(Interestingly the time of day of the 2nd file in the Windows Explorer view of the top-level folder ( 4:53 PM) matches the time of day of the 1st file in the WIndows Explorer view of the subfolder.)

Thanks,
Steve

PS-On Friday, I thought I had seen the files not appearing in alphabetical order, but that's not happening now.
Windows 10Windows OS

Avatar of undefined
Last Comment
Stephen Kairys

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Dr. Klahn

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Stephen Kairys

ASKER
Thank you, Dr Klahn. Turning in for the night; will review in detail in the morning.
Qlemo

To add to the confusion, Explorer can display dates stored inside the file, in particular for multi media files ...
Stephen Kairys

ASKER
@Qlemo - by multi-media files, does that include PNG files created with the snipping tool,and possibly modified by MS PAINT? Thanks.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Qlemo

Open the properties of an arbitrary file in Explorer, and you'll see if there are additional informations in Details. For PNG, this is true, there is a recording date there. The software creating/modifying the file needs to manage that info, otherwise it is empty or unchanged.
Bill Prew

In a test here, neither Snipping Tool, or MS Paint wrote to the date/time metadata tags in a PNG file.  Paint.Net did write to a number of them, but not the date/time ones.


»bp
Bill Prew

And the newer Snip & Sketch tool in Windows populated some of the other metadata, but not the date/time stuff.


»bp
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Stephen Kairys

ASKER
@Bill - are you saying that if my PNG file is dated 2/21/19, 4:49 PM and I update it PAINT today, it will remain with visibiel date of 2/21/19, 4:49 PM? I've seen that behavior rather consistently.

Thanks.
Bill Prew

No, I was referring to any date/time info stored in the meta data content of the file itself, not the basic operating system attributes associated with all files.  Those will follow normal activities and be updated by Windows.


»bp
Bill Prew

Also, the date you are viewing could be the created date, which won't change.  Typically the last accessed, and last modified will though if you read and then update the file...


»bp
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Stephen Kairys

ASKER
Thanks everyone. I'll need a few days to look over.
Stephen Kairys

ASKER
Thanks, everyone! I did not have a chance to review anyone's instructions, but Dr. Klahn's explanation satisfied what I needed to know.