PostgreSQL 时间函数 时区的影响
发布时间:2020-12-13 17:22:55 所属栏目:百科 来源:网络整理
导读:1. to_timestamp(duble) 返回类型: timestamp; 描述:把UNIX纪元转换成时间戳 postgres=# select to_timestamp(3600); 1970-01-01 09:00:00+08 东八区的显示效果如上,可以看到to_timestamp是考虑时区计算的。
1. to_timestamp(duble) 返回类型: timestamp; 描述:把UNIX纪元转换成时间戳
postgres=# select to_timestamp(3600); 1970-01-01 09:00:00+08东八区的显示效果如上,可以看到to_timestamp是考虑时区计算的。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |