TIMESTAMP
Timestamp data type and usages
Description
A timestamp value represents an absolute point in time, independent of any time zone or convention such as daylight saving time (DST), with microsecond precision. For more information please refer to BigQuery Timestamp data type.
Grammar syntax
TIMESTAMP
0001-01-01 00:00:00 to 9999-12-31 23:59:59.999999 UTC
TIMESTAMP data type currently transformed to TIMESTAMP_TZ.
It is important to remark that BigQuery stores TIMESTAMP data in Coordinated Universal Time (UTC).
Sample Source Patterns
TIMESTAMP without time
Input Code:
Output Code:
TIMESTAMP with time zone
When the time zone is defined you need to use the CONVERT_TIMEZONE function to store the data in Coordinated Universal Time (UTC). Also the timezone name inside the timestamp literal is not supported by Snowflake, in that case it is necessary to use this function as well.
Input Code:
Output Code:
Last updated