PHP Class Google\Cloud\BigQuery\Date

Example: use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $bigQuery = $cloud->bigQuery(); $date = $bigQuery->date(new \DateTime('1995-02-04'));
Inheritance: implements Google\Cloud\BigQuery\ValueInterface
Datei anzeigen Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Protected Properties

Property Type Description
$value DateTimeInterface

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 date 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

Property Details

$value protected_oe property

protected DateTimeInterface $value
return DateTimeInterface