简体   繁体   English

时间戳 function 是否考虑 bigquery 中的夏令时

[英]does timestamp function consider daylight savings in bigquery

The TIMESTAMP() fucntion in bigquery takes in timezone parameter. bigquery 中的 TIMESTAMP() 函数接受时区参数。 Does it consider day light savings as well?它也考虑夏令时吗?

If there are references to specific daylight saving information, please point to the links as well.如果有对特定夏令时信息的引用,请同时指向链接。

Yes TIMESTAMP() considers daylight saving time.是 TIMESTAMP() 考虑夏令时。 Since TIMESTAMP() converts a string, date, datetime expression to timestamp data type we can check on the data type timestamp .由于TIMESTAMP()将字符串、日期、日期时间表达式转换为时间戳数据类型,我们可以检查数据类型 timestamp

A TIMESTAMP object represents an absolute point in time, independent of any time zone or convention such as Daylight Savings Time with microsecond precision. TIMESTAMP object 表示绝对时间点,独立于任何时区或约定,例如具有微秒精度的夏令时。

To better understand this, here is an example to with timezone to show the behavior of timestamp when there is daylight saving time.为了更好地理解这一点,这里有一个带有时区的示例,以显示存在夏令时时时间戳的行为。 See timezone for more details.有关详细信息,请参阅时区

Consider this time as an example:以这次为例:

2014-09-27 12:30:00.45 America/Los_Angeles 2014-09-27 12:30:00.45 美国/洛杉矶

Note that not all time zone names are interchangeable even if they do happen to report the same time during a given part of the year.请注意,并非所有时区名称都可以互换,即使它们恰好在一年中的给定部分报告同一时间。 For example, America/Los_Angeles reports the same time as UTC-7:00 during Daylight Savings Time, but reports the same time as UTC-8:00 outside of Daylight Savings Time.例如,America/Los_Angeles 在夏令时期间报告与 UTC-7:00 相同的时间,但在夏令时之外报告与 UTC-8:00 相同的时间。

With this example, we can say that TIMESTAMP() considers daylight saving time.通过这个例子,我们可以说 TIMESTAMP() 考虑了夏令时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM