public function fromSqlTimestampWithTimeZone($sqlTimestamp, Provider $provider = null)
    {
        if ($sqlTimestamp === null) {
            return null;
        }

        $this->setParameterProvider($provider);

        $phpTimestamp = DateTime::createFromFormat($provider->getTimestampWithTimeZoneFormat(), $sqlTimestamp);

        if ($phpTimestamp === false) {
            $phpTimestamp = $this->parseUnknownDateTimeFormat($sqlTimestamp);
        }

        return $phpTimestamp;
    }
public function fromSqlTimestampWithTimeZone($sqlTimestamp, Provider $provider = null)
    {
        if ($sqlTimestamp === null) {
            return null;
        }

        $this->setParameterProvider($provider);

        $phpTimestamp = DateTime::createFromFormat($provider->getTimestampWithTimeZoneFormat(), $sqlTimestamp);

        if ($phpTimestamp === false) {
            $phpTimestamp = $this->parseUnknownDateTimeFormat($sqlTimestamp);
        }

        return $phpTimestamp;
    }
public function fromSqlTimestampWithTimeZone ( $ sqlTimestamp , Provider $ provider = null ) { if ( $ sqlTimestamp === null ) { return null ; } $ this -> setParameterProvider ( $ provider ) ; $ phpTimestamp = DateTime :: createFromFormat ( $ provider -> getTimestampWithTimeZoneFormat ( ) , $ sqlTimestamp ) ; if ( $ phpTimestamp === false ) { $ phpTimestamp = $ this -> parseUnknownDateTimeFormat ( $ sqlTimestamp ) ; } return $ phpTimestamp ; }
Converts an SQL timestamp with time zone to a PHP date time

@param string $sqlTimestamp The timestamp with time zone to convert
@param Provider $provider The provider to convert from
@return DateTime|null The PHP date time
@throws InvalidArgumentException Thrown if the input timestamp couldn't be cast to a PHP timestamp
Converts an SQL timestamp with time zone to a PHP date time