public function toTimeZone($timeZone, $format = null, $ignoreDst = false)
	{
		$format = $format ?: parent::$format;
		$timeZone = self::getTimeZoneObject($timeZone, $ignoreDst);
		$this->setTimezone($timeZone);
		return $this->format($format, true);
	}
public function toTimeZone($timeZone, $format = null, $ignoreDst = false)
	{
		$format = $format ?: parent::$format;
		$timeZone = self::getTimeZoneObject($timeZone, $ignoreDst);
		$this->setTimezone($timeZone);
		return $this->format($format, true);
	}
public function toTimeZone ( $ timeZone , $ format = null , $ ignoreDst = false ) { $ format = $ format ? : parent :: $ format ; $ timeZone = self :: getTimeZoneObject ( $ timeZone , $ ignoreDst ) ; $ this -> setTimezone ( $ timeZone ) ; return $ this -> format ( $ format , true ) ; }
Function to explicitly convert a date to the timezone and format provided.
@param   mixed  $timeZone The numeric key on the Date static offsets array (a short list of common timezones)
or a timezone string accepted by the TimeZone PHP object (see {@link PHP_MANUAL#timezones})
@param   string  $format  The date format specification string (see {@link PHP_MANUAL#date})
@return  string
Function to explicitly convert a date to the timezone and format provided .