Unix Timestamp bigint(20)

放肆的年华 提交于 2019-12-22 11:31:38

问题


I am doing research in a MySQL database, and I suppose some timestamps are in Unix format.

Those timestamps are in a bigint(20) field.

I'm going crazy about them.

How can I convert these to a regular timestamp?

Example:

634583466272408810

634587264000000000


回答1:


try

select from_unixtime(634583466272408810/1000000000)

See FROM_UNIXTIME



来源:https://stackoverflow.com/questions/12090772/unix-timestamp-bigint20

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!