DOKK / manpages / debian 13 / libbson-doc / bson_iter_date_time.3.en
BSON_ITER_DATE_TIME(3) libbson BSON_ITER_DATE_TIME(3)

#define BSON_ITER_HOLDS_DATE_TIME(iter) \

(bson_iter_type ((iter)) == BSON_TYPE_DATE_TIME) int64_t bson_iter_date_time (const bson_iter_t *iter);


iter: A bson_iter_t.

The bson_iter_date_time() function shall return the number of milliseconds since the UNIX epoch, as contained in the BSON_TYPE_DATE_TIME element.

A 64-bit integer containing the number of milliseconds since the UNIX epoch.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4