# BsonTimestamp


```
class BsonTimestamp
```

<br />

*** ** * ** ***

Represents a BSON Timestamp type in Firestore documents.

## Summary

| ### Public constructors |
|---|
| `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#BsonTimestamp(long,long)(seconds: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, increment: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Constructor that creates a new BSON Timestamp value with the given values. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#equals(java.lang.Object)(obj: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!)` Returns true if this BsonTimestampValue is equal to the provided object. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#hashCode()()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#increment()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/BsonTimestamp#seconds()` |

## Public constructors

### BsonTimestamp

```
BsonTimestamp(seconds: Long, increment: Long)
```

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

| Parameters |
|---|---|
| `seconds: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | An unsigned 32-bit integer value stored as long representing the seconds. |
| `increment: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | An unsigned 32-bit integer value stored as long representing the increment. |

## Public functions

### equals

```
fun equals(obj: Any!): Boolean
```

Returns true if this BsonTimestampValue is equal to the provided object.

| Parameters |
|---|---|
| `obj: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` | The object to compare against. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | Whether this BsonTimestampValue is equal to the provided object. |

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String!
```

## Public properties

### increment

```
val increment: Long
```

### seconds

```
val seconds: Long
```