You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionobjectIdWithTimestamp(timestamp){// Convert string date to Date object (otherwise assume timestamp is a date)if(typeof(timestamp)=='string'){timestamp=newDate(timestamp);}// Convert date object to hex seconds since Unix epochvarhexSeconds=Math.floor(timestamp/1000).toString(16);// Create an ObjectId with that hex timestampvarconstructedObjectId=ObjectId(hexSeconds+"0000000000000000");returnconstructedObjectId}db.getCollection('collection_1').find({'_id': {$gt: objectIdWithTimestamp('2017/11/04')}});