RE: [PHP] How do I get milliseconds?

From: Date: Wed, 04 Sep 2002 19:18:40 +0000
Subject: RE: [PHP] How do I get milliseconds?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115221@lists.php.net to get a copy of this message
If you are looking for milliseconds on the current time, see the examples on microtime(): http://www.php.net/manual/en/function.microtime.php Here is a summary of how to get milliseconds: list($usec, $sec) = explode(" ",microtime()); $milliseconds = (((float)$usec/1000) + (float)$sec); I haven't tested this out, but it looks right. Michael "phpzen" Richardson -----Original Message----- From: DonPro [mailto:donpro@lclcan.com] Sent: Wednesday, September 04, 2002 11:47 AM To: php list Subject: [PHP] How do I get milliseconds? Using the following code, date("His") I get the hours, minutes and seconds. Is there a way to extend this so that I get the milliseconds too? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#115221) next »