Page 1 of 1

calculate time()

Posted: Sat Dec 03, 2011 2:34 am
by doublebackflip
how to calculate the time a case of the example below

example =

1322896113 = 03 Dec 2011 02:08 PM

How to convert 1322896113 become 03 Dec 2011 02:08 PM

Anyone have the formula...? :)
Thanks Before :)

Re: calculate time()

Posted: Sat Dec 03, 2011 5:36 am
by twinedev

Code: Select all

// $tsValue = your time() style value
echo date('d M Y h:i A',$tsValue);
See www.php.net/date for full formatting details.

-Greg