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" <[EMAIL PROTECTED]>
To: "'pierre-yves'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 8:23 AM
Subject: AW: [PHP] Time problem


Take the date() function ;-)

-----Ursprüngliche Nachricht-----
Von: pierre-yves [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 8. August 2001 14:19
An: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to