Swat/SwatDate.php
public function format($format, $tz_format = null)
    {
        if (is_int($format)) {
            $format = self::getFormatById($format);
        }

        $out = parent::format($format);

        if ($tz_format !== null) {
            $out .= ' ' . $this->formatTZ($tz_format);
        }

        return $out;
    }
public function format($format, $tz_format = null)
    {
        if (is_int($format)) {
            $format = self::getFormatById($format);
        }

        $out = parent::format($format);

        if ($tz_format !== null) {
            $out .= ' ' . $this->formatTZ($tz_format);
        }

        return $out;
    }
public function format ( $ format , $ tz_format = null ) { if ( is_int ( $ format ) ) { $ format = self :: getFormatById ( $ format ) ; } $ out = parent :: format ( $ format ) ; if ( $ tz_format !== null ) { $ out .= ' ' . $ this -> formatTZ ( $ tz_format ) ; } return $ out ; }
Formats this date given either a format string or a format id

Note: The results of this method are not localized. For a localized
formatted date, use {@link SwatDate::formatLikeIntl()} or
{@link SwatDate::formatLikeStrftime()}.

@param mixed $format either a format string or an integer format id.
@param integer $tz_format optional time zone format id.

@return string the formatted date.
Formats this date given either a format string or a format id