|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69334 Microseconds vs Milliseconds confusion
Submitted: 2015-03-31 01:47 UTC Modified: 2015-04-03 17:03 UTC
From: webmaster at thedigitalorchard dot ca Assigned: jmikola (profile)
Status: Closed Package: mongo (PECL)
PHP Version: 5.6.7 OS: OS X 10.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: webmaster at thedigitalorchard dot ca
New email:
PHP Version: OS:


 [2015-03-31 01:47 UTC] webmaster at thedigitalorchard dot ca
From manual page:

The documentation states that the MongoDate class stores milliseconds, but then the class definition defines "sec" (seconds) and "usec" (micro-seconds) properties. This should be clarified or corrected. There are 1000 microseconds in 1 millisecond, so the class should be storing sufficient data to represent both units, but the documentation should indicate this better.

Test script:

Expected result:
Documentation should reflect class definition.

Actual result:
Documentation talks about milliseconds where as class definition defines microseconds.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-03 17:03 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: jmikola
 [2015-04-03 17:03 UTC]
Thanks for reporting this issue. Development for the "mongo" extension and its documentation are primarily managed through our JIRA project, so I've opened to track this issue.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 10 23:01:24 2021 UTC