PHP Класс Google\Cloud\BigQuery\Timestamp

Example: $timestamp = $bigQuery->timestamp(new \DateTime('2003-02-05 11:15:02.421827Z'));
Наследование: implements Google\Cloud\BigQuery\ValueInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

Format the value as a string.
public __toString ( ) : string
Результат string

formatAsString() публичный Метод

Format the value as a string.
public formatAsString ( ) : string
Результат string

get() публичный Метод

Get the underlying \DateTimeInterface implementation.
public get ( ) : DateTimeInterface
Результат DateTimeInterface

type() публичный Метод

Get the type.
public type ( ) : string
Результат string