---
name: "bson_iter_timeval"
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_timeval"
---

# bson\_iter\_timeval(3)

## SYNOPSIS

```
void
bson_iter_timeval (const bson_iter_t *iter, struct timeval *tv);
```

## PARAMETERS

- •

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

- •

  **tv**: A struct timeval.

## DESCRIPTION

The *bson\_iter\_timeval()* function shall return the number of seconds and microseconds since the UNIX epoch, as contained in the BSON\_TYPE\_DATE\_TIME element into **tv**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
