Re: formatting a timestamp
| From: | Rolf Brusletto | Date: | Sat, 31 May 2003 06:45:53 +0000 |
| Subject: | Re: formatting a timestamp | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28188@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Rick,
You can use date() in the following fashion..
$timeStamp = time();
date('m-d-y : h-m', $timeStamp);
where $timestamp is a unix epoch timestamp.
Hope this helps!
Rolf Brusletto
http://www.phpexamples.net
Rick Dahl wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro* I want to print out a timestamp of length 14. I want to have it formatted like: mm-dd-yy : hh-mm I have looked but all I can find is how to format a date and I don't want that. I want the time also. Rick "Don't burn the day...away" ~ DJM _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail