Scroll to navigation

BSON_ITER_DATE_TIME(3) Library Functions Manual BSON_ITER_DATE_TIME(3)

NAME

bson_iter_date_time() - 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.

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.

COLOPHON

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
2016‐10‐12 libbson