The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > lite > Timestamp > toMillis

Timestamp.toMillis() method

Converts a Timestamp to a numeric timestamp (in milliseconds since epoch). This operation causes a loss of precision.

Signature:

toMillis(): number;

Returns:

number

The point in time corresponding to this timestamp, represented as the number of milliseconds since Unix epoch 1970-01-01T00:00:00Z.