我有这行代码,但是如何更改为欧洲CEST时区?在此示例中为EventEnqueuedUtcTime
。
WITH machinelearning AS (
SELECT EventEnqueuedUtcTime, temperature, humidity,
machinelearning(temperature, humidity) as result
from [YourInputAlias]
)
答案 0 :(得分:0)
AT TIME ZONE
function可用于以下事项:
将输入日期转换为对应的datetimeoffset值 目标时区
var text = `<mxfile userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36" version="8.9.5" editor="www.draw.io"><diagram id="cfd6b513-e040-9cc8-9c77-33132335d14b" name="Page-1">3ZXBjpswEIafhuNGYKcSPSbppj10pUo59Bg5eABrjY3MsJA+fceACTRdbSutemgOsefzmLH/35iIH6r+sxN1+WQl6IjFso/4p4ixjx9i+vfgOgLOJlA4JUeU3MBJ/YAJhrRWSWhWiWitRlWvYWaNgQxXTDhnu3VabvW6ai0KuAOnTOh7+l1JLEeahm15/gVUUYbKSTyNXET2XDjbmqlexHg+/MbhSoRnTflNKaTtFog/RvzgrMWxV/UH0F7aINs47/jK6LxuBwb/ZAIbJ7wI3UJY8bAuvAYtaIm176pqEG1fYqUpTKj7Ag4VqbbTqjDE0NYL+lVcQH+zjUJl</diagram></mxfile>`;
console.log(/name\s*=\s*["']([^"']*)/.exec(text)[1]);