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

Implement ObjectID::getTimestamp() method

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0-alpha2, 1.2.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • Environment:
      Debian 8

      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
      

            Assignee:
            derick Derick Rethans
            Reporter:
            vincentvm Vincent van Megen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: