gpt4 book ai didi

presto - 在Presto中转换Unix时间至今

转载 作者:行者123 更新时间:2023-12-03 15:26:51 24 4
gpt4 key购买 nike

我具有从纪元(ms)开始存储的时间戳,我想使用格式为'yyyy-mm-dd'的日期查询和显示结果。

最佳答案

cast(from_unixtime(unixtime) as date)
有关更多日期时间函数,请参见https://prestodb.io/docs/current/functions/datetime.html

关于presto - 在Presto中转换Unix时间至今,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44420926/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com