Exemple #1
0
 /**
  * Returns true if given datetime string is within current year.
  *
  * @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 True if datetime string is within current year
  * @see  CakeTime::isThisYear()
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time
  */
 public function isThisYear($dateString, $timezone = NULL)
 {
     return $this->_engine->isThisYear($dateString, $timezone);
 }