如何在 Presto 中将时间戳转换为日期?

2024-01-19

我喜欢将时间戳列转换为日期和时间格式。我应该如何从 presto 编写查询?我的时间戳是UTC时间。非常感谢

Timestamp format"1506929478589"
After query convert it looks like "2016-10-25 21:04:08.436"

你可以转换timestamp to date with cast(col as date) or date(col) https://prestosql.io/docs/current/functions/datetime.html#date.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 Presto 中将时间戳转换为日期? 的相关文章

随机推荐