Time problem

From: Date: Wed, 08 Aug 2001 12:18:31 +0000
Subject: Time problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-61806@lists.php.net to get a copy of this message
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; }

« previous php.general (#61806) next »