|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60690 microsec/1000
Submitted: 2012-01-09 08:17 UTC Modified: 2012-02-10 18:47 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: radler63 at hotmail dot com Assigned: irker (profile)
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-01-09 08:17 UTC] radler63 at hotmail dot com
From manual page:
I think you have to divide the ms by 1000


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-09 14:56 UTC] hello at apfelbox dot net

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-02-10 18:47 UTC]
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
 [2012-02-10 18:47 UTC]
-Status: Open +Status: Not a bug -Package: Online Doc Editor problem +Package: Documentation problem -Assigned To: +Assigned To: irker
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 23:01:24 2021 UTC