Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将Unix时间戳转换为基于UTC+0的DATETIME类型值,与时区设置无关。
DATETIME to_datetime_ntz(BIGINT unix_ts, INT scale)
unix_ts
1598306400
1598306400123
scale
0
3
6
DATETIME
NULL
SELECT to_datetime_ntz(1598306400); -- 返回: 2020-08-24 22:00:00 SELECT to_datetime_ntz(1598306400123456, 6); -- 返回: 2020-08-24 22:00:00.123456