Exemple #1
0
 /**
  * Returns a partial SQL string to search for all records between two dates.
  *
  * @param int|string|DateTime $begin     UNIX timestamp, strtotime() valid string or DateTime object
  * @param int|string|DateTime $end       UNIX timestamp, strtotime() valid string or DateTime object
  * @param string              $fieldName Name of database field to compare with
  * @param string|DateTimeZone $timezone  User's timezone string or DateTimeZone object
  *
  * @return string Partial SQL string.
  * @see  CakeTime::daysAsSql()
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting
  */
 public function daysAsSql($begin, $end, $fieldName, $timezone = NULL)
 {
     return $this->_engine->daysAsSql($begin, $end, $fieldName, $timezone);
 }