Re: Time problem

From: Date: Wed, 08 Aug 2001 14:52:09 +0000
Subject: Re: Time problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61838@lists.php.net to get a copy of this message
Thanks, I feel a bit moron ;) it seems like I missed it while reading the manuel, sometimes the solution is so obvious that it becomes trivial! py ----- Original Message ----- From: "Thomas Schmid" <dyonisus@gmx.de> To: "'pierre-yves'" <pylem@sympatico.ca> Sent: Wednesday, August 08, 2001 8:23 AM Subject: AW: [PHP] Time problem Take the date() function ;-) -----Ursprüngliche Nachricht----- Von: pierre-yves [mailto:pylem@sympatico.ca] Gesendet: Mittwoch, 8. August 2001 14:19 An: php-general@lists.php.net Betreff: [PHP] Time problem Hello, I convert the time in seconds to do some calculations, now I want to convert a number of seconds in a presentable HH:MM:SS format. In other words, how do you change this 997271630.08651 in 08:14:32 ? py p.s. I use this to get the number of seconds. function getmicrotime() { $temparray=split(" ",microtime()); $returntime=$temparray[0]+$temparray[1]; return $returntime; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#61838) next »