Core/src/GrpcTrait.php
private function formatTimestampFromApi(array $timestamp)
    {
        $timestamp += [
            'seconds' => 0,
            'nanos' => 0
        ];

        $dt = $this->createDateTimeFromSeconds($timestamp['seconds']);

        return $this->formatTimeAsString($dt, $timestamp['nanos']);
    }
private function formatTimestampFromApi(array $timestamp)
    {
        $timestamp += [
            'seconds' => 0,
            'nanos' => 0
        ];

        $dt = $this->createDateTimeFromSeconds($timestamp['seconds']);

        return $this->formatTimeAsString($dt, $timestamp['nanos']);
    }
private function formatTimestampFromApi ( array $ timestamp ) { $ timestamp += [ 'seconds' => 0 , 'nanos' => 0 ] ; $ dt = $ this -> createDateTimeFromSeconds ( $ timestamp [ 'seconds' ] ) ; return $ this -> formatTimeAsString ( $ dt , $ timestamp [ 'nanos' ] ) ; }
Format a gRPC timestamp to match the format returned by the REST API.

@param array $timestamp
@return string
Format a gRPC timestamp to match the format returned by the REST API .