public static function formatTimestamp($timestamp, $format = self::DEFAULT_TIME_FORMAT, $timezone = self::DEFAULT_TIMEZONE)
    {
        $dateTime = new DateTime();
        $dateTime->setTimestamp($timestamp);
        $dateTime->setTimezone(new DateTimeZone($timezone));
        return $dateTime->format($format);
    }
public static function formatTimestamp($timestamp, $format = self::DEFAULT_TIME_FORMAT, $timezone = self::DEFAULT_TIMEZONE)
    {
        $dateTime = new DateTime();
        $dateTime->setTimestamp($timestamp);
        $dateTime->setTimezone(new DateTimeZone($timezone));
        return $dateTime->format($format);
    }
public static function formatTimestamp ( $ timestamp , $ format = self :: DEFAULT_TIME_FORMAT , $ timezone = self :: DEFAULT_TIMEZONE ) { $ dateTime = new DateTime ( ) ; $ dateTime -> setTimestamp ( $ timestamp ) ; $ dateTime -> setTimezone ( new DateTimeZone ( $ timezone ) ) ; return $ dateTime -> format ( $ format ) ; }
Returns formatted Unix timestamp.

@param int $timestamp
@param string $format
@param string $timezone
@return string
Returns formatted Unix timestamp .