개발자의 노트
Javascript에서 mongodb objectid 구하기

mongodb의 objectid에 대한 설명은 http://docs.mongodb.org/manual/reference/object-id/ 12byte의 길이를 가지며 507f1f77bcf86cd799439011 형식의 값을 가진다. 각 byte는 아래와 같이 구해진다. a 4-byte value representing the seconds since the Unix epoch,a 3-byte machine identifier,a 2-byte process id, anda 3-byte counter, starting with a random value. 자바스크립트 상에서 구현하기 위해 아래 사이트를 방문하자. https://github.com/justaprogrammer/ObjectId.js 이곳에서 ..