home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl_ste.zip / auto / Net / FTP / mdtm.al < prev    next >
Text File  |  1997-11-28  |  300b  |  15 lines

  1. # NOTE: Derived from ./blib/lib/Net/FTP.pm.  Changes made here will be lost.
  2. package Net::FTP;
  3.  
  4. sub mdtm
  5. {
  6.  my $ftp  = shift;
  7.  my $file = shift;
  8.  
  9.  $ftp->_MDTM($file) && $ftp->message =~ /(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)/
  10.     ? timegm($6,$5,$4,$3,$2-1,$1 - 1900)
  11.     : undef;
  12. }
  13.  
  14. 1;
  15.