---
name: "bson_iter_time_t"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_iter_time_t"
---

# bson\_iter\_time\_t(3)

## SYNOPSIS

```
time_t
bson_iter_time_t (const bson_iter_t *iter);
```

## PARAMETERS

- •

  **iter**: A *bson\_iter\_t*.

## DESCRIPTION

The *bson\_iter\_time\_t()* function shall return the number of seconds since the UNIX epoch, as contained in the BSON\_TYPE\_DATE\_TIME element.

## RETURNS

A **time\_t** containing the number of seconds since the UNIX epoch.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
