modified() public method

Recursively check when the dir and all subfolders have been modified for the last time.
public modified ( $format = null, $handler = 'date' ) : integer
return integer
Example #1
0
 /**
  * Recursively check when the dir and all
  * subfolders have been modified for the last time.
  *
  * @param   string   $dir The path of the directory
  * @param   string   $format
  * @return  int
  */
 public static function modified($dir, $format = null)
 {
     // It's easier to handle this with the Folder class
     $object = new Folder($dir);
     return $object->modified($format);
 }