Help for this page

Select Code to Download


  1. or download this
    #get the modification time of the remote file
    #assuming $ftp is a Net::FTP object
    ...
    #set the time of the local file
    # (assumes $file is also the local file name)
    utime $mtime, $mtime, $file;
    
  2. or download this
    my $now = time;
    utime $now, $now, @localfiles;