问题
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