FirebaseFirestore Framework Reference

FIRBSONTimestamp


@interface FIRBSONTimestamp : NSObject <NSCopying>

Represents a BSON timestamp type in Firestore documents.

  • The underlying unsigned 32-bit integer for seconds

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint32_t seconds;
  • The underlying unsigned 32-bit integer for increment

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint32_t increment;
  • Creates a BSONTimestamp with the given seconds and increment values.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSeconds:(uint32_t)seconds
                                  increment:(uint32_t)increment;

    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

    Objective-C

    - (BOOL)isEqual:(nullable id)object;