Cake\Chronos\ChronosInterface::wasWithinLast PHP Méthode

wasWithinLast() public méthode

Returns true this instance happened within the specified interval
public wasWithinLast ( string | integer $timeInterval ) : boolean
$timeInterval string | integer the numeric value with space then time type. Example of valid types: 6 hours, 2 days, 1 minute.
Résultat boolean
    public function wasWithinLast($timeInterval);
ChronosInterface