Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: comparing files based on timestamps

by Marshall (Canon)
on Apr 02, 2009 at 08:19 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-10-01 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?