Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: comparing files based on timestamps

by Marshall (Canon)
on Apr 02, 2009 at 08:19 UTC ( [id://754890]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (my $m_time) = (stat($source_path))[9];
    my ($i_wday, $i_month, $day, $year) = (localtime($m_time))[6,4,3,5];
    
  2. or download this
    #remember for timegm month[0-11] and year is delta from 1900
    my $time = timegm(0,$minutes,$hours,$days,$month-1,$year-1900);
    print "epoch seconds $time\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found