note 7867 deleted from time by zak
| From: | zak@php.net | Date: | Thu, 17 Aug 2000 19:57:17 +0000 |
| Subject: | note 7867 deleted from time by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2222@lists.php.net to get a copy of this message | ||
i'm new to the php scene... i'm trying to convert a timestamp into a readable format. i
keep getting the current time. i even tried this simple test routine where i give an exact time for
output:
$temp=19990620034525;
$display=time($temp);
echo date("d M y H:i:s",$display);
what am i not getting right?
i tried the sample by josh@sprintout.com, but having problem understanding the code...would you
expound on these lines:
$temp = time($row[TimeVar]);
/* or...where $DB is a DB object
$temp = $DB->curr_row(TimeVar);//or something similar..
$temp = time($temp);
*/
thanks.@