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
Afficher le fichier Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Protected Properties

Свойство Type Description
$value DateTimeInterface

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

Format the value as a string.
public __toString ( ) : string
Résultat string

formatAsString() public méthode

Format the value as a string.
public formatAsString ( ) : string
Résultat string

get() public méthode

Get the underlying \DateTimeInterface implementation.
public get ( ) : DateTimeInterface
Résultat DateTimeInterface

type() public méthode

Get the type.
public type ( ) : string
Résultat string

Property Details

$value protected_oe property

protected DateTimeInterface $value
Résultat DateTimeInterface