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 \ BigQueryMethods
__construct
Parameter | |
---|---|
Name | Description |
value |
DateTimeInterface
The time value. |
get
Get the underlying \DateTimeInterface
implementation.
Returns | |
---|---|
Type | Description |
DateTimeInterface |
type
Get the type.
Returns | |
---|---|
Type | Description |
string |
formatAsString
Format the value as a string.
Returns | |
---|---|
Type | Description |
string |
__toString
Format the value as a string.
Returns | |
---|---|
Type | Description |
string |
Constants
FORMAT
Value: 'H:i:s.u'