public function wasWithinLast($timeInterval, $dateString, $timezone = null)
    {
        return (new Time($dateString, $timezone))->wasWithinLast($timeInterval);
    }
public function wasWithinLast($timeInterval, $dateString, $timezone = null)
    {
        return (new Time($dateString, $timezone))->wasWithinLast($timeInterval);
    }
public function wasWithinLast ( $ timeInterval , $ dateString , $ timezone = null ) { return ( new Time ( $ dateString , $ timezone ) ) -> wasWithinLast ( $ timeInterval ) ; }
Returns true if specified datetime was within the interval specified, else false.

@param string|int $timeInterval the numeric value with space then time type.
Example of valid types: 6 hours, 2 days, 1 minute.
Integer input values are deprecated and support will be removed in 4.0.0
@param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
@param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object
@return bool
@see \Cake\I18n\Time::wasWithinLast()
Returns true if specified datetime was within the interval specified else false .