bson_iter_date_time() — libbson 1.9.2

- libbson 1.9.2 »
- API Reference »
- bson_iter_t

# bson_iter_date_time()

## Synopsis

    #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);

## Parameters

- `iter`: A bson_iter_t.

## Description

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.

## Returns

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

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.