<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [Timestamp](./firestore_lite.timestamp.md) &gt; [toMillis](./firestore_lite.timestamp.tomillis.md)

## Timestamp.toMillis() method

Converts a `Timestamp` to a numeric timestamp (in milliseconds since epoch). This operation causes a loss of precision.

<b>Signature:</b>

```typescript
toMillis(): number;
```
<b>Returns:</b>

number

The point in time corresponding to this timestamp, represented as the number of milliseconds since Unix epoch 1970-01-01T00:00:00Z.

