1BSON_APPEND_DATE_TIME(3)            libbson           BSON_APPEND_DATE_TIME(3)
2
3
4

SYNOPSIS

6          #define BSON_APPEND_DATE_TIME(b, key, val) \
7             bson_append_date_time (b, key, (int) strlen (key), val)
8
9          bool
10          bson_append_date_time (bson_t *bson,
11                                 const char *key,
12                                 int key_length,
13                                 int64_t value);
14

PARAMETERS

16bson: A bson_t.
17
18key: An ASCII C string containing the name of the field.
19
20key_length: The length of key in bytes, or -1 to determine the length
21         with strlen().
22
23value: The date and time as specified in milliseconds since the  UNIX
24         epoch.
25

DESCRIPTION

27       The  bson_append_date_time()  function  shall append a new element to a
28       bson document containing a date and time with no timezone  information.
29       value  is  assumed  to  be in UTC format of milliseconds since the UNIX
30       epoch. value MAY be negative.
31

RETURNS

33       Returns true if the operation was applied  successfully.  The  function
34       will fail if appending value grows bson larger than INT32_MAX.
35

AUTHOR

37       MongoDB, Inc
38
40       2017-present, MongoDB, Inc
41
42
43
44
451.25.1                           Nov 08, 2023         BSON_APPEND_DATE_TIME(3)
Impressum