BigQuery Client - Class Time (1.27.0)

Reference documentation and code samples for the BigQuery Client class Time.

Represents a value with a data type of Time.

Example:

use Google\Cloud\BigQuery\BigQueryClient;

$bigQuery = new BigQueryClient();

$time = $bigQuery->time(new \DateTime('12:15:00.482172'));

Namespace

Google \ Cloud \ BigQuery

Methods

__construct

Parameter
NameDescription
value DateTimeInterface

The time value.

get

Get the underlying \DateTimeInterface implementation.

Returns
TypeDescription
DateTimeInterface

type

Get the type.

Returns
TypeDescription
string

formatAsString

Format the value as a string.

Returns
TypeDescription
string

__toString

Format the value as a string.

Returns
TypeDescription
string

Constants

FORMAT

Value: 'H:i:s.u'