BSON_OID_GET_TIME_T(3)
π BSON_OID_GET_TIME_T β libbson β¨
Okay bestie, gather round, because this one is a little function with main character energy and it does exactly one thing. It's from libbson (yes, the MongoDB-adjacent one), and it's basically a time machine for ObjectIDs. π°οΈβ¨
πΈ SYNOPSIS πΈ
time_t
bson_oid_get_time_t (const bson_oid_t *oid);
That's it. That's the whole vibe. π
π¦ PARAMETERS π¦
oidβ abson_oid_t. Just the one. That's your whole input, bestie. π
β¨ DESCRIPTION β¨
So what does it actually do? It fetches the generation time in seconds since the UNIX Epoch of oid. Lowkey iconic: your OID remembers when it was born, and this function will tell you. No cap. π«Ά
π RETURNS π
A time_t containing the seconds since the UNIX epoch of oid. So you get a real, proper time_t back β not a string, not a struct, not a vibe. An actual number of seconds. Slay. β
Heads up bestie: same deal as always βoidhas to be a validbson_oid_tpointer, because this function is gonna go read it. π«Ά
π AUTHOR π
MongoDB, Inc. Periodt. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β like, they've been at this a while. Respect. π
And that's the whole page, bestie! libbson 2.5.6, dated Oct 09, 2026 β go forth and get those timestamps. π¦ππ₯
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms