Meena
Meena

Reputation: 967

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 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.

Upvotes: 0

Views: 206

Answers (2)

Your Common Sense
Your Common Sense

Reputation: 157839

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.

Upvotes: 0

Zimbabao
Zimbabao

Reputation: 8240

Check documentation for php date

$timestamp=1297503935;
date ( DATE_RFC822 ,  $timestamp );

Upvotes: 1

Related Questions