F::modified PHP Method

modified() public static method

Get the file's last modification time.
public static modified ( string $file, string $format = null, string $handler = 'date' ) : integer
$file string
$format string
$handler string date or strftime
return integer
    public static function modified($file, $format = null, $handler = 'date')
    {
        if (file_exists($file)) {
            return !is_null($format) ? $handler($format, filemtime($file)) : filemtime($file);
        } else {
            return false;
        }
    }