PHP Class Google\Cloud\BigQuery\Timestamp

Example: $timestamp = $bigQuery->timestamp(new \DateTime('2003-02-05 11:15:02.421827Z'));
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 timestamp 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