public function toDateTime()
    {
        $time = sprintf('%s.%06d', $this->seconds, $this->nanos / 1000);
        return \DateTime::createFromFormat('U.u', $time);
    }
public function toDateTime()
    {
        $time = sprintf('%s.%06d', $this->seconds, $this->nanos / 1000);
        return \DateTime::createFromFormat('U.u', $time);
    }
public function toDateTime ( ) { $ time = sprintf ( '%s.%06d' , $ this -> seconds , $ this -> nanos / 1000 ) ; return \ DateTime :: createFromFormat ( 'U.u' , $ time ) ; }
Converts Timestamp to PHP DateTime.

@return \DateTime $datetime
Converts Timestamp to PHP DateTime .