0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Eliot Horowitz 2010-06-15 21:28:26 -04:00
parent 0b780fdcda
commit c5d975b2b5

View File

@ -3,4 +3,13 @@ assert(o.getTimestamp);
a = new ObjectId("4c17f616a707427266a2801a");
b = new ObjectId("4c17f616a707428966a2801c");
assert.eq(a.getTimestamp(), b.getTimestamp());
assert.eq(a.getTimestamp(), b.getTimestamp() , "A" );
a = new ObjectId()
x = Math.floor( (new Date()).getTime() / 1000 )
y = Math.floor( a.getTimestamp().getTime() / 1000 )
assert.eq( x , y , "B" )