/** * @see CakeTime::toUnix() * * @param integer|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object * @param string|DateTimeZone $timezone User's timezone string or DateTimeZone object * @return integer Unix timestamp * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting */ public function toUnix($dateString, $timezone = null) { return $this->_engine->toUnix($dateString, $timezone); }