/** * Returns true if specified datetime is 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. * @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object * @param string|DateTimeZone $timezone User's timezone string or DateTimeZone object * * @return bool * @see CakeTime::isWithinLast() * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time */ public function isWithinNext($timeInterval, $dateString, $timezone = NULL) { return $this->_engine->isWithinNext($timeInterval, $dateString, $timezone); }