calculate time()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
doublebackflip
Forum Newbie
Posts: 3
Joined: Sat Nov 26, 2011 2:18 am

calculate time()

Post 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 :)
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: calculate time()

Post 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
Post Reply