public function toSqlTimestampWithTimeZone(DateTimeInterface $timestamp, Provider $provider = null) : string
    {
        $this->setParameterProvider($provider);

        return $timestamp->format($provider->getTimestampWithTimeZoneFormat());
    }
public function toSqlTimestampWithTimeZone(DateTimeInterface $timestamp, Provider $provider = null) : string
    {
        $this->setParameterProvider($provider);

        return $timestamp->format($provider->getTimestampWithTimeZoneFormat());
    }
public function toSqlTimestampWithTimeZone ( DateTimeInterface $ timestamp , Provider $ provider = null ) : string { $ this -> setParameterProvider ( $ provider ) ; return $ timestamp -> format ( $ provider -> getTimestampWithTimeZoneFormat ( ) ) ; }
Converts a PHP date time to an SQL timestamp with time zone

@param DateTimeInterface $timestamp The date time to convert
@param Provider $provider The provider to convert to
@return string The SQL timestamp with time zone suitable for database storage
Converts a PHP date time to an SQL timestamp with time zone