pg数据库postgresql时间戳转换

 to_timestamp(create_at/1000)::date='2022-05-24'

 

时间戳如果是13位的要除以1000

如果是10位的,不用除以1000

posted @ 2022-05-24 12:09  ivyJ  阅读(661)  评论(0)    收藏  举报