Implement ObjectID::getTimestamp() method

XMLWordPrintableJSON

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

      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 Rethans
              Reporter:
              Vincent van Megen
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: