Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

oid_to_timestamp

Get OID date


Description

The initial 4 bytes of a MongoDB OID contain a timestamp value, representing the ObjectId creation, measured in seconds since the Unix epoch.

Usage

oid_to_timestamp(oid)

Arguments

oid

string or raw value with document oid

Examples

oid_to_timestamp('5349b4ddd2781d08c09890f3')

mongolite

Fast and Simple 'MongoDB' Client for R

v2.3.1
Apache License 2.0
Authors
Jeroen Ooms [aut, cre] (<https://orcid.org/0000-0002-4035-0289>), MongoDB, Inc [cph] (Bundled mongo-c-driver, see AUTHORS file)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.