Пример #1
0
 /**
  * Returns true if specified datetime was within the interval specified, else false.
  *
  * @param mixed $timeInterval the numeric value with space then time type.
  *    Example of valid types: 6 hours, 2 days, 1 minute.
  * @param mixed $dateString the datestring or unix timestamp to compare
  * @param int $userOffset User's offset from GMT (in hours)
  * @return bool
  * @access public
  * @link http://book.cakephp.org/view/1472/Testing-Time
  */
 function wasWithinLast($timeInterval, $dateString, $userOffset = null)
 {
     return parent::wasWithinLast($timeInterval, $dateString, $this->__userOffset($dateString, $userOffset));
 }