1BSON_APPEND_TIME_T(3)               libbson              BSON_APPEND_TIME_T(3)
2
3
4

NAME

6       bson_append_time_t - bson_append_time_t()
7

SYNOPSIS

9          #define BSON_APPEND_TIME_T(b, key, val) \
10             bson_append_time_t (b, key, (int) strlen (key), val)
11
12          bool
13          bson_append_time_t (bson_t *bson,
14                              const char *key,
15                              int key_length,
16                              time_t value);
17

PARAMETERS

19bson: A bson_t.
20
21key: An ASCII C string containing the name of the field.
22
23key_length: The length of key in bytes, or -1 to determine the length
24         with strlen().
25
26value: A time_t.
27

DESCRIPTION

29       The bson_append_time_t() function is a helper that takes a  time_t  in‐
30       stead of milliseconds since the UNIX epoch.
31

RETURNS

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

AUTHOR

37       MongoDB, Inc
38
40       2017-present, MongoDB, Inc
41
42
43
44
451.23.1                           Oct 20, 2022            BSON_APPEND_TIME_T(3)
Impressum