> Documentation index: https://firebase.google.com/docs/reference/llms.txt

# BsonTimestamp


```
public final class BsonTimestamp
```

<br />

*** ** * ** ***

Represents a BSON Timestamp type in Firestore documents.

## Summary

| ### Public fields |
|---|---|
| `final long` | `increment` |
| `final long` | `seconds` |

| ### Public constructors |
|---|
| `BsonTimestamp(long seconds, long increment)` Constructor that creates a new BSON Timestamp value with the given values. |

| ### Public methods |
|---|---|
| `boolean` | `equals(Object obj)` Returns true if this `BsonTimestamp` is equal to the provided object. |
| `int` | `hashCode()` |
| `String` | `toString()` |

## Public fields

### increment

```
public final long increment
```

### seconds

```
public final long seconds
```

## Public constructors

### BsonTimestamp

```
public BsonTimestamp(long seconds, long increment)
```

Constructor that creates a new BSON Timestamp value with the given values.

| Parameters |
|---|---|
| `long seconds` | An unsigned 32-bit integer value stored as long representing the seconds. |
| `long increment` | An unsigned 32-bit integer value stored as long representing the increment. |

## Public methods

### equals

```
public boolean equals(Object obj)
```

Returns true if this `BsonTimestamp` is equal to the provided object.

| Parameters |
|---|---|
| `Object obj` | The object to compare against. |

| Returns |
|---|---|
| `boolean` | Whether this `BsonTimestamp` is equal to the provided object. |

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```