BSON_ITER_OVERWRITE_DATE_TIME(3)
π BSON_ITER_OVERWRITE_DATE_TIME π
okay bestie, so this is the BSON_ITER_OVERWRITE_DATE_TIME(3) page from libbson, and honestly? it's a little baddie with one job and she does it. sit down, get comfy, let's go π«Ά
β¨ SYNOPSIS β¨
void
bson_iter_overwrite_date_time (bson_iter_t *iter, int64_t value);
like, that's the whole vibe. two args, no return value, no drama π
πΈ PARAMETERS πΈ
iterβ abson_iter_t. yes, that kind of iterator. your little pointer bestie π«valueβ the date and time, specified in milliseconds since the UNIX epoch. milliseconds!! not seconds, not nanos, don't come at her with the wrong units fr fr π
π¦ DESCRIPTION π¦
so the bson_iter_overwrite_date_time() function shall overwrite the contents of a BSON_TYPE_DATE_TIME element in place. in place, bestie. no copies, no new document, she just reaches in and swaps the value π
β¨
β οΈ but hear me now: this may only be done when the underlying bson document allows mutation. if it doesn't, that's a whole situation and you do NOT want it π«
and this one's important β it is a programming error to call this function when iter is not observing an element of type BSON_TYPE_DATE_TIME. like, the iterator has to actually be looking at a date-time element, okay? check your types first, i'm begging ππ
π AUTHOR π
MongoDB, Inc β the icons themselves β¨
π COPYRIGHT π
2009-present, MongoDB, Inc.
aaaand that's the page, bestie!! π go forth, overwrite those date-times responsibly, and remember: in place only, mutable documents only, right type only. slay ππ¦π
ngl this was libbson 2.5.6, dated Oct 09, 2026 β iconic of her, no cap π
β
π¦ 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