classes/phing/types/selectors/SelectorUtils.php
public static function isOutOfDate(PhingFile $src, PhingFile $target, $granularity)
    {
        if (!$src->exists()) {
            return false;
        }
        if (!$target->exists()) {
            return true;
        }
        if (($src->lastModified() - $granularity) > $target->lastModified()) {
            return true;
        }

        return false;
    }
public static function isOutOfDate(PhingFile $src, PhingFile $target, $granularity)
    {
        if (!$src->exists()) {
            return false;
        }
        if (!$target->exists()) {
            return true;
        }
        if (($src->lastModified() - $granularity) > $target->lastModified()) {
            return true;
        }

        return false;
    }
public static function isOutOfDate ( PhingFile $ src , PhingFile $ target , $ granularity ) { if ( ! $ src -> exists ( ) ) { return false ; } if ( ! $ target -> exists ( ) ) { return true ; } if ( ( $ src -> lastModified ( ) - $ granularity ) > $ target -> lastModified ( ) ) { return true ; } return false ; }
Returns dependency information on these two files. If src has been
modified later than target, it returns true. If target doesn't exist,
it likewise returns true. Otherwise, target is newer than src and
is not out of date, thus the method returns false. It also returns
false if the src file doesn't even exist, since how could the
target then be out of date.

@param  PhingFile $src the original file
@param  PhingFile $target the file being compared against
@param  int $granularity the amount in seconds of slack we will give in
determining out of dateness
@return bool whether   the target is out of date
Returns dependency information on these two files . If src has been modified later than target it returns true . If target doesn t exist it likewise returns true . Otherwise target is newer than src and is not out of date thus the method returns false . It also returns false if the src file doesn t even exist since how could the target then be out of date .