Re: note 7867 added to time

From: Date: Thu, 17 Aug 2000 19:57:24 +0000
Subject: Re: note 7867 added to time
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-2221@lists.php.net to get a copy of this message
Please do not ask support questions in the manual notes. Instead email your questions to php-general@lists.php.net (php-general-subscribe@lists.php.net to subscribe to the list) Also, read the manual entry for time more carefully - it does not accept an argument. If you wish to create a unix-style timestamp from a date, then use the mktime function. - zak At 07:47 PM 8/17/00 +0000, pugranch@voicenet.com wrote:
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.@ http://www.php.net/manual/function.time.php -- PHP Notes Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-notes-unsubscribe@lists.php.net For additional commands, e-mail: php-notes-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.notes (#2221) next »