Learn R Programming

rmongodb (version 1.8.0)

mongo.oid.time: Get an Object ID's time

Description

Get the 32-bit UTC time portion of an OID (Object ID).

Usage

mongo.oid.time(oid)

Arguments

oid
(mongo.oid) The OID to be examined.

Value

(integer) ("POSIXct") The time portion of the given oid.

Details

See http://www.mongodb.org/display/DOCS/Object+IDs

See Also

mongo.oid, mongo.oid.create, as.character.mongo.oid, mongo.oid.to.string, mongo.oid.from.string, mongo.bson.buffer.append, mongo.bson.buffer.append.oid, mongo.bson.buffer, mongo.bson.

Examples

Run this code
oid <- mongo.oid.create()
print(mongo.oid.time(oid))

Run the code above in your browser using DataLab