note 12077 added to function.time.php
| From: | fgilles at free dot fr | Date: | Wed, 21 Mar 2001 13:47:37 +0000 |
| Subject: | note 12077 added to function.time.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12633@lists.php.net to get a copy of this message | ||
extended time() function adding microseconds to Unix Timestamp:
float utime(void);
function utime()
{
$t=microtime();
$t=((double)strstr($t, ' ')+
(double)substr($t,0,strpos($t,' ')));
return $t;
}
ex:
$time = utime();
$time equals 984256845.854455
warning: doesn't work on Win32 system (see microtime() function)
http://www.php.net/manual/en/function.time.php