1BSON_APPEND_NOW_UTC(3) libbson BSON_APPEND_NOW_UTC(3)
2
3
4
6 bson_append_now_utc - bson_append_now_utc()
7
9 bool
10 bson_append_now_utc (bson_t *bson, const char *key, int key_length);
11
13 • bson: A bson_t.
14
15 • key: An ASCII C string containing the name of the field.
16
17 • key_length: The length of key in bytes, or -1 to determine the length
18 with strlen().
19
21 The bson_append_now_utc() function is a helper to get the current date
22 and time in UTC and append it to bson as a BSON_TYPE_DATE_TIME element.
23
24 This function calls bson_append_date_time() internally.
25
27 Returns true if the operation was applied successfully. The function
28 will fail if appending the value grows bson larger than INT32_MAX.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.20.0 Nov 18, 2021 BSON_APPEND_NOW_UTC(3)