Example:
$time = $bigQuery->time(new \DateTime('12:15:00.482172'));
public function testToString() { $value = new \DateTime(); $time = new Time($value); $expected = $value->format('H:i:s.u'); $this->assertEquals($expected, (string) $time); $this->assertEquals($expected, $time->formatAsString()); }