loony383 Posted June 4, 2008 Share Posted June 4, 2008 how do i display a date and time from a timestamp $frm3[post_time] is a timestamp how could i set a varible to the date and time using the timestamp? Quote Link to comment Share on other sites More sharing options...
revraz Posted June 4, 2008 Share Posted June 4, 2008 What kind of timestamp, Unix or MySQL? Quote Link to comment Share on other sites More sharing options...
loony383 Posted June 4, 2008 Author Share Posted June 4, 2008 Mysql Quote Link to comment Share on other sites More sharing options...
discomatt Posted June 4, 2008 Share Posted June 4, 2008 so assuming YYYY-MM-DD HH:MM:SS You can use the mysql function UNIX_TIMESTAMP Quote Link to comment Share on other sites More sharing options...
loony383 Posted June 4, 2008 Author Share Posted June 4, 2008 Im no good at php anymore becuase i stopped for such a long time so how would i use that in my code? i just need a way to change things like 1210198018 into an understandable/readable date and time. Quote Link to comment Share on other sites More sharing options...
discomatt Posted June 4, 2008 Share Posted June 4, 2008 That's a unix timestamp. Check out the date() function. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.