Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^7: comparing 2 file time date stamps

by Corion (Patriarch)
on Nov 06, 2014 at 16:50 UTC ( [id://1106405]=note: print w/replies, xml ) Need Help??


in reply to Re^6: comparing 2 file time date stamps
in thread comparing 2 file time date stamps

I don't know whatever makes you think that the date on the second file should be different. Your OS concurs with Perl that the date of the file on the filesystem is as shown and identical to the first date.

Maybe you want to tell us where you get that other date of "11/4" (whatever the month and the day should be in that) from? What program shows that date?

If you want to use a different timestamp than the mtime, you have to actually use that instead of using the mtime from the filesystem.

  • Comment on Re^7: comparing 2 file time date stamps

Replies are listed 'Best First'.
Re^8: comparing 2 file time date stamps
by craigt (Acolyte) on Nov 06, 2014 at 16:59 UTC
    The 2 files are in different directories as you can see. The 2nd file in the stage directory has an external (what I can see looking at the file list in the directory of the 2nd file) dt stamp of 11/4 at 5:03.

      That's not what the output of your run tells me. That output runs dir on each file, and that tells me that the two files actually have the same mtime. Whatever way you are using to "look at the file list in the directory of the 2nd file" is telling you something different, but that way is to blame, not your system or Perl. Your system and Perl are consistent.

        Please help me understand what you mean. I change to the stage directory. Windows presents me with a list of files and their date. Are you saying that the Windows file system is showing me the wrong date?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1106405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found