Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-552

Implement ObjectID::getTimestamp() method

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.2.0, 1.2.0-alpha2
    • Labels:
    • Environment:
      Debian 8

      Description

      It seems that objectid to timestamp function is missing in the driver.

      <?php
      $objectid = new MongoDB\BSON\ObjectID('564b07d6619d4b3d668b45e3');
      echo $objectid->getTimestamp(); // should return the timestamp
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: