summaryrefslogtreecommitdiff
path: root/jstests/core/objid6.js
blob: 0165d0c8e37ca74765d5169b5ef010a4aedb9547 (plain)
1
2
3
4
5
6
7
8
9
10
(function() {
    'use strict';

    var o = new ObjectId();
    assert(o.getTimestamp);

    var a = new ObjectId("4c17f616a707427266a2801a");
    var b = new ObjectId("4c17f616a707428966a2801c");
    assert.eq(a.getTimestamp(), b.getTimestamp());
})();