FirebaseFirestore Framework Reference

BSONTimestamp

class BSONTimestamp : NSObject, NSCopying, @unchecked Sendable

Represents a BSON timestamp type in Firestore documents.

  • The underlying unsigned 32-bit integer for seconds

    Declaration

    Swift

    var seconds: UInt32 { get }
  • The underlying unsigned 32-bit integer for increment

    Declaration

    Swift

    var increment: UInt32 { get }
  • 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.

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

    Declaration

    Swift

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