开发者

How to i change the time stamp using php mysql

开发者 https://www.devze.com 2023-02-12 08:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消