从Epoch(1970)到2000年开始的Postgresql时间戳的Qt时间戳。如何添加偏移量并从毫秒转换为微秒?

问题描述 投票:0回答:1

我需要计算从1970年到2000年的偏移量,以便将数据插入到postgresql数据库中,因为postgresql在2000年以毫秒为单位开始,而currentMSecsSinceEpoch在1970年以毫秒为单位开始。

postgresql qt timestamp offset epoch
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.