in reply to $ftp->mdtm question

See the documentation for the localtime built in function ( perldoc -f localtime).