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/bigqueryConstructors
(constructor)(value)
constructor(value: Date | PreciseDate | string | number);
Constructs a new instance of the BigQueryTimestamp
class
Parameter | |
---|---|
Name | Description |
value |
Date | PreciseDate | string | number
|
Properties
value
value: string;
Methods
fromFloatValue_(value)
fromFloatValue_(value: number): PreciseDate;
Parameter | |
---|---|
Name | Description |
value |
number
|
Returns | |
---|---|
Type | Description |
PreciseDate |