Google\Cloud\BigQuery\Timestamp::get PHP Method

get() public method

Get the underlying \DateTimeInterface implementation.
public get ( ) : DateTimeInterface
return DateTimeInterface
    public function get()
    {
        return $this->value;
    }

Usage Example

 public function testGet()
 {
     $value = new \DateTime();
     $timestamp = new Timestamp($value);
     $this->assertEquals($value, $timestamp->get());
 }