PHP Class Google\Cloud\BigQuery\Time

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

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