method

mtime

v2_2_9 - Show latest stable - Class: Net::FTP
mtime(filename, local = false)
public

Returns the last modification time of the (remote) file. If local is true, it is returned as a local time, otherwise it’s a UTC time.