PHP Class Google\Cloud\BigQuery\Time

Example: $time = $bigQuery->time(new \DateTime('12:15:00.482172'));
Inheritance: implements Google\Cloud\BigQuery\ValueInterface
Mostra file Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Public Methods

Method Description
__construct ( DateTimeInterface $value )
__toString ( ) : string Format the value as a string.
formatAsString ( ) : string Format the value as a string.
get ( ) : DateTimeInterface Get the underlying \DateTimeInterface implementation.
type ( ) : string Get the type.

Method Details

__construct() public method

public __construct ( DateTimeInterface $value )
$value DateTimeInterface The time value.

__toString() public method

Format the value as a string.
public __toString ( ) : string
return string

formatAsString() public method

Format the value as a string.
public formatAsString ( ) : string
return string

get() public method

Get the underlying \DateTimeInterface implementation.
public get ( ) : DateTimeInterface
return DateTimeInterface

type() public method

Get the type.
public type ( ) : string
return string