Class BigQueryTimestamp (7.6.0)

Timestamp class for BigQuery.

The recommended input here is a Date or PreciseDate class. If passing as a string, it should be Timestamp literals: https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#timestamp_literals. When passing a number input, it should be epoch seconds in float representation.

Package

@google-cloud/bigquery

Constructors

(constructor)(value)

constructor(value: Date | PreciseDate | string | number);

Constructs a new instance of the BigQueryTimestamp class

Parameter
NameDescription
value Date | PreciseDate | string | number

Properties

value

value: string;

Methods

fromFloatValue_(value)

fromFloatValue_(value: number): PreciseDate;
Parameter
NameDescription
value number
Returns
TypeDescription
PreciseDate