Exemple #1
0
 /**
  * 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.
  * @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::wasWithinLast()
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time
  */
 public function wasWithinLast($timeInterval, $dateString, $timezone = NULL)
 {
     return $this->_engine->wasWithinLast($timeInterval, $dateString, $timezone);
 }