Is there a direct way to convert Unix Time on Informix to YYYY-MM-DD HH:MM:SS?

孤者浪人 提交于 2019-12-20 01:42:17

问题


I know something like this can be accomplished easily using PHP or Perl, but I want to know if there's a way to do it directly on Informix, something like the function FROM_UNIXTIME() on MySQL.


回答1:


I think you can do it using dbinfo with 'utc_to_datetime' as a parameter: http://publib.boulder.ibm.com/infocenter/idshelp/v115/index.jsp?topic=%2Fcom.ibm.sqls.doc%2Fids_sqs_1484.htm



来源:https://stackoverflow.com/questions/9213273/is-there-a-direct-way-to-convert-unix-time-on-informix-to-yyyy-mm-dd-hhmmss

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