Unix timestamp to date/time function?
#4

If you're fetching the timestamp from MySQL along with other data, then you might consider doing something like:
PHP код:
SELECT *, FROM_UNIXTIME(`timestamp`) AS `frm_timestampFROM `tableWHERE `something` = 
You can also specify a custom format. Read up on it in the documentation.
Reply


Messages In This Thread
Unix timestamp to date/time function? - by Whizion - 01.02.2012, 22:29
Re: Unix timestamp to date/time function? - by MP2 - 01.02.2012, 22:34
Re: Unix timestamp to date/time function? - by Basssiiie - 01.02.2012, 22:38
Re: Unix timestamp to date/time function? - by Vince - 01.02.2012, 23:08
Re : Unix timestamp to date/time function? - by human-product - 03.02.2012, 07:01

Forum Jump:


Users browsing this thread: 2 Guest(s)