<!-- 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; [fromMillis](./firestore_lite.timestamp.frommillis.md)

## Timestamp.fromMillis() method

Creates a new timestamp from the given number of milliseconds.

<b>Signature:</b>

```typescript
static fromMillis(milliseconds: number): Timestamp;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  milliseconds | number | Number of milliseconds since Unix epoch 1970-01-01T00:00:00Z. |

<b>Returns:</b>

[Timestamp](./firestore_lite.timestamp.md)

A new `Timestamp` representing the same point in time as the given number of milliseconds.

