/** * Converts a time in any format to an RSS time * * @param int|string|DateTime $time * @return string An RSS-formatted timestamp * @see CakeTime::toRSS */ public function time($time) { return CakeTime::toRSS($time); }
/** * Formats date for RSS feeds * * @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 string Formatted date string * @see CakeTime::toRSS() * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting */ public function toRSS($dateString, $timezone = NULL) { return $this->_engine->toRSS($dateString, $timezone); }