# BSONTimestamp

    class BSONTimestamp : NSObject, NSCopying, @unchecked Sendable

Represents a BSON timestamp type in Firestore documents.
- `


  ### [seconds](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes/BSONTimestamp#/c:objc(cs)FIRBSONTimestamp(py)seconds)


  ` The underlying unsigned 32-bit integer for seconds

  #### Declaration

  Swift

      var seconds: UInt32 { get }

- `


  ### [increment](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes/BSONTimestamp#/c:objc(cs)FIRBSONTimestamp(py)increment)


  ` The underlying unsigned 32-bit integer for increment

  #### Declaration

  Swift

      var increment: UInt32 { get }

- `


  ### [init(seconds:increment:)](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes/BSONTimestamp#/c:objc(cs)FIRBSONTimestamp(im)initWithSeconds:increment:)


  ` Creates a `BSONTimestamp` with the given seconds and increment values.

  #### Declaration

  Swift

      init(seconds: UInt32, increment: UInt32)

  #### Parameters

  |---|---|
  | ` seconds ` | The underlying unsigned 32-bit integer for seconds. |
  | ` increment ` | The underlying unsigned 32-bit integer for increment. |

- `


  ### [isEqual(_:)](https://firebase.google.com/docs/reference/swift/firebasefirestore/api/reference/Classes/BSONTimestamp#/c:objc(cs)FIRBSONTimestamp(im)isEqual:)


  ` Returns true if the given object is equal to this, and false otherwise.

  #### Declaration

  Swift

      func isEqual(_ object: Any?) -> Bool