BsonTimestamp class

Represents a BSON Timestamp type in Firestore documents.

BsonTimestamp

Signature:

export declare class BsonTimestamp 

Constructors

Constructor Modifiers Description
(constructor)(seconds, increment) Constructs a new instance of the BsonTimestamp class

Properties

Property Modifiers Type Description
increment number
seconds number

Methods

Method Modifiers Description
isEqual(other) Returns true if this BsonTimestamp is equal to the provided one.

BsonTimestamp.(constructor)

Constructs a new instance of the BsonTimestamp class

Signature:

constructor(seconds: number, increment: number);

Parameters

Parameter Type Description
seconds number
increment number

BsonTimestamp.increment

Signature:

readonly increment: number;

BsonTimestamp.seconds

Signature:

readonly seconds: number;

BsonTimestamp.isEqual()

Returns true if this BsonTimestamp is equal to the provided one.

Signature:

isEqual(other: BsonTimestamp): boolean;

Parameters

Parameter Type Description
other BsonTimestamp The BsonTimestamp to compare against. 'true' if this BsonTimestamp is equal to the provided one.

Returns:

boolean