How to i change the time stamp using php mysql
My friend using phpfox social network. He intergrating the phpfox with his own application.
In phpfox site they are using the time stamp like this 开发者_JS百科 1297503935
(DB data type : int(10) ).We wre not able to find what way ther are using to get num as a time stamp . Is there is any way to change this integer into normal time stamp.
Check documentation for php date
$timestamp=1297503935;
date ( DATE_RFC822 , $timestamp );
FYI: A "normal timestamp" is an integer. It's UNIX timestamp
PHP's sense of time is based on this integer and there are plenty of functions to deal with it.
精彩评论