Closed Naboo22 closed 6 months ago
Notice that DATETIME and TIMESTAMP are not identical:
The documentation go on and say
To represent an absolute point in time, use a timestamp.
You can see the results of this query, when I'm at the America/Los_Angeles
time zone, notice the difference in the values.
@davidrabinowitz thanks, I think I've wrapped my head around that now!
Env:
The following code
produces the resultant table:
+--------------------+--------------------+ | datetime| timestamp| +--------------------+--------------------+ |2023-09-18 09:54:...|2023-09-18 10:54:...| +--------------------+--------------------+
You can see that the timestamp field is an hour ahead of the datetime field. I am unclear if this is intended behaviour to do with timezones, but the same query run in the BigQuery console yields identical times.