Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Posting file's modification date?

by tachyon (Chancellor)
on Jun 13, 2001 at 00:01 UTC ( #87919=note: print w/ replies, xml ) Need Help??


in reply to Posting file's modification date?

You will find a discussion here Find and check timestamps of files. The answer is basically

$mod = (stat "$path/$filename")[9]; # this prints result in usual date format # like -> Tue Jun 12 23:50:10 2001 print scalar localtime $mod;

If you use Super Search you will find heaps of examples on this topic floating around the monastery. This is also in the Perl FAQ at How do I get a file's timestamp in perl?. If you have not discoverd the Perl FAQ you are missing out on heaps of goodies.

cheers

tachyon


Comment on Re: Posting file's modification date?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2014-07-30 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls