Getting timestamp from ObjectId

37 views
Skip to first unread message

Henrique Nunes

unread,
Feb 4, 2014, 7:38:27 AM2/4/14
to clojure...@googlegroups.com
Hi all!

Is there a way in Monger to get the timestamp from an ObjectId?

This, essentially.

Thanks!

Michael Klishin

unread,
Feb 4, 2014, 7:56:56 AM2/4/14
to Monger, a Clojure MongoDB driver
2014-02-04 Henrique Nunes <hjrn...@gmail.com>:

Is there a way in Monger to get the timestamp from an ObjectId?

This, essentially.

(.getTimestamp oid)

Monger doesn't have its own object IDs, it uses data types from the Java client.
--
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
Reply all
Reply to author
Forward
0 new messages