Bug #60690 [Opn->Nab]: microsec/1000
| From: | irker@php.net | Date: | Fri, 10 Feb 2012 18:47:16 +0000 |
| Subject: | Bug #60690 [Opn->Nab]: microsec/1000 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7920@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60690&edit=1
ID: 60690
Updated by: irker@php.net
Reported by: radler63 at hotmail dot com
Summary: microsec/1000
-Status: Open
+Status: Not a bug
Type: Bug
-Package: Online Doc Editor problem
+Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: irker
Block user comment: N
Private report: N
New Comment:
From documentation:
"If get_as_float is set to TRUE, then microtime() returns a FLOAT, which
represents the current time in SECONDS since the Unix epoch accurate to the
nearest microsecond."
thx hello at apfelbox dot net
Previous Comments:
------------------------------------------------------------------------
[2012-01-09 14:56:56] hello at apfelbox dot net
Hi,
no, microtime(true) returns the seconds with the microseconds as float.
For example 1 second, 500 microseconds will return 1.5
The example is therefore correct.
------------------------------------------------------------------------
[2012-01-09 08:17:33] radler63 at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.microtime#refsect1-function.microtime-examples
---
I think you have to divide the ms by 1000
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60690&edit=1