Example #1
0
 /**
  * Returns the quarter
  *
  * @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
  * @param bool                $range      if true returns a range in Y-m-d format
  *
  * @return int|array 1, 2, 3, or 4 quarter of year or array if $range true
  * @see  CakeTime::toQuarter()
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting
  */
 public function toQuarter($dateString, $range = FALSE)
 {
     return $this->_engine->toQuarter($dateString, $range);
 }